日期:2014-05-17  浏览次数:20549 次

highcharts 怎么从后台获得数据?
<script type="text/javascript">
$(function () {
    var chart;
    $(document).ready(function() {
        chart = new Highcharts.Chart({
            chart: {
                renderTo: 'container',
                type: 'bar'
            },
            title: {  
                text: 'Historic World Population by Region'
            },
            subtitle: {  
                text: 'Source: Wikipedia.org'
            },
            xAxis: {  
                categories: <%= xAxisCategories %>,//从后台获取数据
                    tickPixelInterval:0.2,
                    title: {
                        text: null
                }
            },
            yAxis: { 
                min: 0,
                title: { // 单位
                    text: 'Population (millions)',
                    align: 'high'
                },
                labels: {
                    overflow: 'justify'
                }
            },
            tooltip: { //鼠标放上去的提示
                formatter: function() {
                    return ''+
         &nbs