在highcharts中显示array.length

时间:2015-05-07 23:20:44

标签: javascript arrays highcharts data-visualization

我想在Highcharts中显示几个数组的arrayNam.Lenth / 5。这不起作用。我该怎么办?

$(function () {

     $('#number_container').highcharts({
         chart: {
             type: 'bar'
         },
         title: {
             text: 'Visualization'
         },
         xAxis: {
             categories: ['All', 'Basic', 'Intermediate', 'Advanced']
         },
         yAxis: {
             title: {
                 text: 'Number'
             }
         },
         series: [{
             name: 'Scans',
             data: [allScans.length / 5, 1, 4, 4]
         }]
     });
 }); < /script>

0 个答案:

没有答案