Reputation: 509
I am using the highcharts library, and I am attempting to create a bar chart however I am having problems in regards to naming the 'bars' in the chart. By default, they shows their numerical value (0, 1, 2 and so on), however I would like to name them by the data passed to the series.
The data is passed in an array such as: ['yahoo.com', 1700],
, and the name displays correctly on hover, how can I also display it where the numerical index currently is?
Jsfiddle: http://jsfiddle.net/3bpwsadu/1/
Thanks
Upvotes: 1
Views: 406
Reputation: 37578
The categories arrays is not required, only what you need is set type as category.
http://jsfiddle.net/3bpwsadu/3/
Upvotes: 3
Reputation: 77482
Add this code to your code (categories)
xAxis: {
categories: []
},
Demo: http://jsfiddle.net/3bpwsadu/2/
Upvotes: 2