use of json in column chart
Posted
by
Santosh
on Stack Overflow
See other posts from Stack Overflow
or by Santosh
Published on 2012-10-23T10:57:42Z
Indexed on
2012/10/23
11:00 UTC
Read the original article
Hit count: 212
I have written the code for column chart as follows:
$(document).ready(function() {
chart1 = new Highcharts.Chart({
chart: {
renderTo: 'container1',
type: 'column'
},
title: {
text: 'Service Calls-Days Over'
},
xAxis: {
categories:<?php echo json_encode($model['dashchart']); ?>
},
yAxis: {
},
series: [{
name: 'Service Calls-Days Over',
color:'#e48801',
data: <?php echo json_encode($model['dashchart']);?>
}
]
});
but still i am not able to draw the chart.
© Stack Overflow or respective owner