I am trying to hide the axis and gridlines of my Highcharts chart entirely. So far I have tried to set the width of the lines to 0, but it didn't work out.
xAxis: {
lineWidth: 0,
minorGridLineWidth: 0,
lineColor: 'transparent'
}
Is it possible to just globally disable the axis lines/ticks and gridlines to create a "plain" plot?
Just add
to the xAxis definition.
This has always worked well for me:
i managed to turn off mine with just
you can also hide the gridline on yAxis as:
For the
yAxis
you'll also need:gridLineColor: 'transparent',
If you have bigger version than v4.9 of Highcharts you can use
visible: false
in thexAxis
andyAxis
settings.Example: