I\'d like to create a line chart with Chart.Js but have the Y-Axis not move when I scroll.
Chart.Js
Y-Axis
I\'m assuming I can use a fixed width, and put i
with the latest version (2.4.0) this worked for me:
HTML
You can also calculate the width dynamically based on the length of data. For example in VueJS you can do it as follow (considering 30px for each entry):
width
30px
VueJS