Hello,
can we customize export chart menus and their methods ?
For example, I only want “Save as Image” in export menus. so can that be possible ?
Hi Indranil,
Thanks for the explanation. But my doubt is why the behavior is different for both the datapoints. Please take a look at this jsfiddle. In this example try “datapoints1” and “datapoints2” and check x-axis labels, you will see for datapoints1 its using label property and for datapoints2 its formatting by “valueFormatString”. So as per my understanding for both the cases it should consider “valueFormatString” not label value.
I am using multiseries line chart. In that valueFormatString: “hh:mm TT” for x-axis labels is used and also label is added to datapoints. so sometimes its taking labels and sometimes valueFormatString.
for example, for below timestamps its taking labels of datapoints as a x-axis labels “data”: [{ “x”: 1619032560000, “label”:”Apr-22-2021 00:46″, “y”: “19.563”, }, { “x”: 1619032620000, “label”:”Apr-22-2021 00:47″, “y”: “19.566”, }
and for below data its taking valueFormatString for x-axis label format, “data”: [{ “x”: 1606377256000, “label”:”Nov-22-2021 00:46″, “y”: “-99.159”, }, { “x”: 1606377616000, “label”:”Nov-22-2021 00:47″, “y”: “-134.617”, } I am converting timestamp into standard javascript date-time format, new Date(x)
so can u please explain on what value it depends ?
Hey Indranil, This is perfect. Thank you so much. It was very helpful. Thanks!!
Thanks for the given solution but it is not working in my case. I am using contentFormatter https://canvasjs.com/docs/charts/chart-options/tooltip/content-formatter/ so toolTipContent is already null. Please let me know if you have any solution for this. It will be appreciated. Thanks.
Hi Vishwas,
Thanks for the solution. This helped me accomplishing the requirement.
Any update on this? I am using multiseries line chart with live data and it has dates on x-axis. I also want to display first and last label on x-axis.