ChartJS onClick parameters

Hello,

I am currently using ChartJS 2024.3.2 with Servoy 2024.3.5.3948_LTS.
I have encountered an issue with the onClick event of a bar chart where the dataset_index and index parameters consistently return the following values:
dataset_index: 0
index: null
However, when I check the value of context.dataIndex within a tooltip callback, it correctly reflects the index values (0, 1, 2, etc.).

Could someone please confirm if this behavior is a bug or if my expectations are incorrect?

I confirmed the same behaviour in 2024.12.

I believe it is a bug, if you look at their code that handles the onClick event, they use selected._index instead of selected.index when passing to the API method. You should submit a bug report.

Thank you, Seain, for confirming.