It seems to be working as per your requirements. When a dataPoint with indexLabel ‘High” is removed, the next available y-value accepts indexLabel “High”.
Sorry, its not possible to show toolTip separately for same x-value when toolTip shared property is set to true. However you can format toolTip content using contentFormatter. Please take a look at this updated jsfiddle.
In the jsfiddle that you have shared y-values passed to the dataPoints are string. Y-values in dataPoints can accept numeric values only. Changing it to numeric should work fine in your case. Please take a look at this updated jsfiddle.
Shift is a JavaScript array method that removes the first item of an array. Please refer this link for more info on the same. Please refer our documentation for complete step-by-step tutorial on creating dynamic charts.
Legends will be shown for every dataSeries. You can enable legend by setting showInLegend property in dataSeries level to true. Text shown in legend can be set with the help of name or legendText.
X-Value can either be number or date-time whereas label can be string. Changing x to label should work fine in your case i.e. {"label":"Panga","y":10} instead of {"x":"Panga","y":10}.
It would be helpful for us to understand your scenario better when we look at your code working live in jsfiddle. So I request you to create jsfiddle and share it with us and brief the problem you are facing?
—
Vishwas R
Team CanvasJS
Viewing 15 posts - 961 through 975 (of 1,628 total)