OnItemClick doesn't work with Scatter

Hi,

I am able to create different charts and use the OnItemClick event, but this doesn’t work with the scatter chart.
Is there a trick ?

Regards,
Eric

Locally it works.
Pleace, attach demo with your scatter chart.
docs.dhtmlx.com/doku.php?id=othe … leted_demo

Hi,

Please, find the demo attached.
index.html is a scatter and onItemClick doesn’t work.
index2.html is a bar chart and onItemClick works.

I hope I have forgotten something but I am unable to see what.

Regards,
Eric

I’ve download your demo, but delete it, because it contains grid files.
Wait for answer, please

Here is a fix for you - there was a little bug.
libs.zip (67.8 KB)

Thank you, it works perfectly !

As I have a dhtmlx_pro_full.js, what is the best place to put the dhtmlxchart.js ?

I have a last question : Is it possible to change the label for the grid of the xAxis, I mean the values beetween the “xAxis Title” and the grid ?

Regards,
Eric

Hi,

Sorry, I find the answer for my last question, I have to use the template.

Regards,
Eric

Just add the chart js files after compilled dhtmlx_pro_full.js

It just what I did.

Thank you Darya.

You are welcome!