This time, I wanna add some interactions to my chart.
And I want to make a chart that when you click some button or click the legend of the line, and it will shows the corresponding data, not display all the datapoints array in the same chart, so what should I do？Or do you guys have any examples?
i am making chart with x and y axes. Both axes are arrays, but the y-axis string that occurs after calculating function in which the user enters parameters After that calculation I do not know how to use that array. If someone could help I’d be very grateful ??
Sorry for my bad english.
If i understood your requirement properly, you can use the labelFormatter for axisY as shown in the given fiddle. In case this is not what you are looking for, could you please try to elaborate a little more and create a jsfiddle so that we can get better understanding of your requirement.
We have copied and modified your fiddle. Here is the updated fiddle. In the updated fiddle, after pressing the calculate button, you get the famname array for the values of Y-axis and vrijed array for the value of x-axis. Using vrijed and famname arrays, you can store and pass these values to the dataPoints property of the CanvasJS object, in the format required by CanvasJS.
Is there any idea that we can make these buttons for bar charts, i mean dots in the line graph in the fiddle you have provided . I’ve a requirement to highlight if we have zero value on the axis it was completely hiding but still i need to click on that.