小编Mar*_*ion的帖子

如何修复Highcharts错误#13?

我使用高图,所以,用户可以关闭并打开图表页面并重绘图表,在某些情况下给我这个错误,我该如何修复它,谢谢这是我的代码

 function populateGraph(graph1data1,graph1data2,id,time,bottomText,tickinterval){
$(function () {
  $('#'+id).highcharts({
      chart: {
          type: 'line'
      },
      xAxis: {
        tickWidth: 0,
        categories: ['1,2,3,4']
      },
      yAxis: {
        gridLineColor: '#fff',
          title: {
              text: ''
          },
          labels: {
              formatter: function() {
                  return '';
              }
          }              
      },
      navigation: {
        buttonOptions: {
            enabled: false
        }
    },
      series: [{
          name: 'This ',
          data: [1,2,3,4],
          color: '#1e71ef'     
      }, {
          name: 'Last ',
          data: [5,6,7,8],
          color:'#dfe0e1'
      }]
  });
});
}
}




       function loadOnlineDashboardChannel(channel){
          $.ajax({
          type: "get",
          dataType: 'html',
          data: {},
          url: "/companies/2/online_dashboard_channel",
          success: …
Run Code Online (Sandbox Code Playgroud)

html javascript highcharts handlebars.js highstock

12
推荐指数
3
解决办法
4万
查看次数

标签 统计

handlebars.js ×1

highcharts ×1

highstock ×1

html ×1

javascript ×1