Home › forums › Using CanvasJS › Hide axis label
This topic contains 4 replies, has 3 voices, and was last updated by elcollie 5 months, 2 weeks ago.
I am using this https://canvasjs.com/jquery-charts/column-chart/ . Is there anyway to hide the label, because I had about 22 bars to create for this chart. And the label unable to fit. I only want to remain the mouse over label.
You can use labelFormatter to hide axis-labels. Also you can use tickLength and lineThickness to hide tick and axis-lines respectively. Please take a look at this jsfiddle.
Is it possible to hide the axis label but still display a crosshair label?
I’ve forked your fiddle to include a crosshair but it seems the axis labelFormatter overrides the crosshair’s labelFormatter.
Thanks for reporting the use-case. We will look into the issue and fix it in future versions.
To work-around this issue, you can set axis labelFontColor to “transparent” instead of using labelFormatter to hide the axis labels as shown in this updated JSFiddle.
Works like a charm!
You must be logged in to reply to this topic.