You must be logged in to post your query.
Home › Forums › Chart Support › Using CanvasJs vertical bar chart show difference
Tagged: Canvas Chart
Hello, Good day!, Consider below example. { label: “Difference Jan 2016-17”, y: 500 } should show from 1000 to 1500. Can you please let me know how to do that. Thanks. Saran
<!DOCTYPE HTML> <html> <head> <script src="https://cdn.canvasjs.com/canvasjs.min.js"></script> <script type="text/javascript"> window.onload = function () { var chart = new CanvasJS.Chart("chartContainer", { title:{ text: "Sales Comparision" }, data: [ { type: "column", dataPoints: [ { label: "January 2016", y: 1000 }, { label: "January 2017", y: 1500 }, { label: "Difference Jan 2016-17", y: 500 } ] } ] }); chart.render(); } </script> </head> <body> <div id="chartContainer" style="height: 300px; width: 100%;"></div> </body> </html>
It would be great, if some one give me a solution by today. Thanks
@saravanan-srinivasan
Range Column chart can be used to show the difference between the two successive dataPoints.
Please take a look at this example.
____________ Indranil Deo, Team CanvasJS
Thanks a lot for your support
Hello, one more query. Do we have options for index label border.
@saravanan-srinivasan,
Sorry, this feature is not available as of now.
___________ Indranil Deo, Team CanvasJS
You must be logged in to reply to this topic. Login/Register