Pass Data In Form Of Variable -Highcharts
I am trying to implement high charts(pai chart) in my system where I am trying to pass the the value of data from a variable which contains the value in exact array manner that dat
Solution 1:
I edited your example here: http://jsfiddle.net/3rkd8/ and all is generated properly.
var chart,
legend_with_values = [['agent_total_members',24],['billing_failed',0],['members_inactive',0],['members_expired',0],['agent_total_members',45]];
$(document).ready(function() {
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: 'Browser market shares at a specific website, 2010'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage}%</b>',
percentageDecimals: 1
},
series: [{
type: 'pie',
name: 'Browser share',
data: legend_with_values
}]
});
});
Could you update this example if you have different source code and problem still exist?
Post a Comment for "Pass Data In Form Of Variable -Highcharts"