Answer to Stack Overflow question: http://stackoverflow.com/questions/42625728/how-to-hide-x-and-y-axis-line-only-in-highchart
author(s):
Mike Zavarello
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
Highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: 'Stacked column chart'
},
xAxis: {
categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas'],
/* make the x-axis line invisible */
lineColor: 'blue'
},
yAxis: {
min: 0,
title: {
text: 'Total fruit consumption'
},
/* make all y-axis gridlines invisible */
gridLineColor: 'transparent'
},
series: [{
name: 'John',
data: [5, 3, 4, 7, 2]
}]
});