Reputation: 1128
i am using high chart to draw pie chart as flow
this is how i give static data this itemdata should be loaded with array dynamically Static intialization
var itemdata = [
['aloogobi', 42.0],
['pannermakhani', 26.8],
{
name: 'Cholle',
y: 14.8,
sliced: true,
selected: true
},
['mattuerpaneer', 6.5],
['Jaipuri', 8.2],
['Kolapuri', 0.7]
];
an i am giving dynamic as follow
for(var i=0;i<categoryGroup.length;i++){
var temp=[categoryGroup[i][1],7.5];
itemdata=itemdata+[temp]+',';
}
here categoryGroup is array that i want to fill in chart ,and after this foor loop i m using this in pie chart as follow but it show me last value with show single letter of last value in chart as below
Upvotes: 0
Views: 1248