I need to hide labels in line chart drawn using library chart.js. I googled but no luck. Could that be hidden?
Thanks
To also hide the tick marks themselves, add gridLines: { tickMarkLength: 0 } to the y axis definition (tested in version 2.9. 4).
To hide one or more axes, hover over Axes to display a right arrow. Select the arrow to display a list of axes that can be displayed or hidden on the chart. Clear the check box for the axes you want to hide. Select the check boxes for the axes you want to display.
To hide just the labels, in version 2.3.0 of Charts.js, you disable ticks
like so:
options: { scales: { yAxes: [{ ticks: { display: false } }] } }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With