You must be logged in to post your query.
Home › Forums › Chart Support › Get Max y Value
How can i get Maximum and minimum value of Y after chart(dynamically) loaded. ?
You can use get() to fetch the minimum and maximum values of the axisY as shown in the code snippet below –
var max = chart.axisY.get("maximum");
document.getElementById("displayMaximum").innerHTML = max;
var min = chart.axisY.get("minimum");
document.getElementById("displayMinimum").innerHTML = min;
Also, please take a look at this JSFiddle for complete working code.
Got the answer.
I want to create Range bar chart from range-to-range
Please check below link and advise me.
Range Bar Chart
Thanks in advance
For Range Bar Chart, you can take a look at this documentation page.
In case you are looking for Stacked Range Bar Chart, we don’t have it out of the box yet. But you can take a look at this work-around to achieve the same using Range Bar Chart.
How set indexLabel onclick event ?
Use below example
You can use click event handler for adding indexLabel to dataPoint that is clicked. Please check the code snippet below –
e.dataPoint.indexLabel = "Y: " + e.dataPoint.y;
Also, kindly check this JSFiddle for adding indexLabel on clicking specific dataPoint.
You must be logged in to reply to this topic. Login/Register