I have a Highcharts chart with a max x-axis value set. Can be seen at:
What I want to do is set a label for my max x-axis. So at the end of my chart where it says 100
, I want to be able to set that to a random string, like butterfly
. My x-axis values are set to category
, so I don't care that the x-axis is showing numbers.
My JavaScript code is like so:
$('#container').highcharts({
xAxis: {
type: 'category',
max: 100
},
series: [{
data: [0, 1, 56, 32]
}]
});
Unsure if there is a function in Highcharts that will allow me to do this.
The other option I have in mind for accomplishing this is by writing out every category. Like I have in this:
However, I am hoping there is a less redundant way of achieving this, since I only want to alter the last x-axis value of a series that has not reached the end (ie the max x-axis). You will note that in both my examples, the data points do not reach the x-axis.