Skip to content Skip to sidebar Skip to footer

Chart.js How To Add A Line In The Canvas For Bar Chart

With a Chart.js - Bar Chart how to add a straight line for achievements such as if over 75/100 is a pass - so need a line in the 75 count. or a thick line on the grid... 4px solid

Solution 1:

If the chart is from highcharts.com, as per example...

http://jsfiddle.net/wergeld/hXDYh/2/

<scripttype="text/javascript"src="http://code.highcharts.com/highcharts.src.js"></script><divid="container"style="height: 400px"></div>

and then lots of Javascript ... etc... needs a JSON / Data of Plot line and Color

Not sure about - ChartJS - have not found info for this - possible a SVG ?

Not sure why a -1 before I added this answer... More of a suggestion for anyone reading this...

Cheers Simon

Post a Comment for "Chart.js How To Add A Line In The Canvas For Bar Chart"