my code:
series: [{
name: 'Brands',
colorByPoint: true,
<?php
$models="SELECT * FROM purchase_info GROUP BY model_name";
$models_querry=mysql_query($models);
while($models_data=mysql_fetch_assoc($models_querry))
{
$model_name[]=$models_data['model_name'];
}
?>
data: [{
name: ['<?php echo join($model_name, ',') ?>'],
y: 56.33,
drilldown: 'Hero Honda'
}]
}],
In my project i'm using high charts, in that how can i add php data into that, i just collect all data and saved into one variable named as $model_name[], after that i pass the array value into data, but in that it will not spitted, all data's are echoed into single one.

nameattribute of your data, when it should go into theyattribute.nameis simply the name of that series, and should only have one value.yin this case would be an array of your values.nameanddatafields so that it would be like:{ name: 'Activa 3G', data: 40 }, { name: 'CB Hornet 16GR', data: 35 }, ...Again, the answer @sneha gave you is a really good one that should solve your issue.