Reputation: 4215
I am using Highcharts to display a simple PIE chart:
The Pie is correctly displayed (with the Labels) when I use the series data: [ ['cars', 8], ['bikes',15] ]
As instance:
series: [{
type: 'pie',
name: 'Vehicles',
data: [ ['cars', 8], ['bikes',15] ]
}]
BUT it doesn't display the Labels at all if I use as data: [ ['cars', 6], ['bikes',15] ]
(6 instead of 8 for cars).
In few words, for some data series Labels are shown, for some others are not shown at all!
I'm using the last HC version: Highcharts JS v2.2.4.
Do you have any ideas about this ?
thanks
Upvotes: 2
Views: 1733
Reputation: 15048
I could not duplicate the issue you are experiencing. However I did create the below pie charts for you.
Maybe looking at the two examples will help you figure out what you are doing wrong.
Upvotes: 0
Reputation: 1958
Try the data section part as following bellow
data: [
{name: 'cars', y: 8},
{name: 'bikes', y: 15}
]
Thanks, Arun Krishnan
Upvotes: 1