Chartjs-How can I express this element?

0👍

Try:
alert(JSON.stringify(config.data.datasets[0].data[0]));

You will need JSON.stringify because config.data.datasets[0].data is also an array of objects

or

alert(config.data.datasets[0].data[0].x);

To get the X value of the first entry of config.data.datasets[0].data

Leave a comment