Overwrite axis labels with name from data series
Description
The following code shows how to overwrite axis labels with name from data series.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type='text/javascript'>
$(function () {<!-- w w w. jav a 2s .c om-->
$('#container').highcharts({
xAxis: {
categories: ['Y', 'X']
},
series: [{
data: [
{name: '', y:25},
{name: 'C', y:23},
{name: 'Feb', y:2},
{name: 'D', y:5}
]
}]
});
});
</script>
</head>
<body>
<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 400px"></div>
</body>
</html>