使用highchart库显示带有动态指针的条形图

时间:2019-06-24 13:28:03

标签: javascript

我想在带有动态页面的条形图中创建一个指针,我得到了一个变量build = [1,2,3]。

如果我的条形图包含三个条形,我想使用列表的第一个索引重定向第一个条形图,依此类推。

plotOptions: {
  series: {

    stacking: 'normal',
    // dataLabels: {
    //     enabled: true,
    cursor: 'pointer',
    events: {
      click: function(build) {
        location.href = 'http://192.168.6.1/ + + build[1] + test_result_failures.html/';
        // }
      }
    }
  }
},

0 个答案:

没有答案