use of json in column chart
- by Santosh
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.