html5 canvas - Extend chart.js horizontal bar graph to include a vertical line -
i'm trying add vertical line @ set point of horizontal bar chart. examples i've found not seem apply charts.js 2. if create new chart type , use horizontalbar draw method no modifications, chart won't draw.
chart.controllers.horizontalbarwithline = chart.controllers.horizontalbar.extend({ draw: function () { chart.controllers.horizontalbar.prototype.draw.apply(this, arguments); } });
can explain how extend chart?
here's current attemp: https://jsfiddle.net/dwelch/6f1gfog2/
please see answer question. think looking for:
Comments
Post a Comment