Chartjs-How to shrink the height and increase the line width of a custom Chartjs horizontal line?

0👍

I found out using this plugin I am dealing with a CanvasRenderingContext2D object. It is good to be aware of that fact. http://html5index.org/Canvas%20-%20CanvasRenderingContext2D.html displays a list of all the variables/methods this object can deal with. In my case the next lines helped me:

ctxPlugin.lineWidth = 1;
ctxPlugin.moveTo(0, lineAt);

Hopefully this can also help you customizing something with Chart.js!

Leave a comment