Chart js - Get bar width after render

Viewed 4648

I need to get the bar width in pixels and use it in my chart js settings for the pointRadius: {{barwidth}} of the overlapping line graph. My chart is also set to responsive so i'd need to update this value if the window was to be resized.

I am stumped. And could really use some help.

See the line on each bar

that is a line chart with the pointStyle: 'line' set so i can have this effect. Now i need to set the width of that line to the bar with pointRadius: {{barwidth}}

1 Answers
Related