Basically, I try to unpick the angular wrapper of chartjs to make or expose a function to draw on the already created canvas.
I have a customer requirement for drawing a single vertical line that will be used to highlight the current time. Crazy, I know.
I got the angular wrapper integrated into my current application and was hoping to use the chart helper canvas which contains a function to draw a point - drawPoint: function(ctx, style, radius, x, y).. turns out that's not accessible.. I'm digging about in core controller but can't find anything of use..
Does anyone know if what i'm doing is possible without editing chartjs?
Cheers
XunChao
No need to modify the core ChartJS library.
You can accomplish that using a ChartJS plugin called - chartjs-plugin-annotation.
DEMO
To learn more about this plugin and its use-cases, refer here.