【问题标题】:Highcharts add left column to grouped dataHighcharts 将左列添加到分组数据
【发布时间】:2021-08-26 17:43:02
【问题描述】:

)

我想使用 highchars 创建甘特图。我想在我的数据中再添加一列。

预期:

我用过这个

`https://jsfiddle.net/gvaartjes/r0c7Lksu`

你能帮我吗?

【问题讨论】:

    标签: angular highcharts html-table


    【解决方案1】:

    我认为对您来说最好的解决方案是使用网格轴,它允许我们在图表的左侧创建一堆列。

    API 参考:

    https://www.highcharts.com/docs/gantt/gantt-axis-grid#vertical-axis https://api.highcharts.com/gantt/yAxis.grid

    演示:

    https://jsfiddle.net/BlackLabel/1twLy4ba/

    yAxis: {
     type: 'category',
     grid: {      
      borderColor: '#3a5d96',      
      columns: [{
        title: {
          text: 'Tasks'
        }
      }, {
        title: {
          text: 'Assignee'
        }
      }, {
        title: {
          text: 'Duration'
        }
      }]
    }}
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-23
      • 1970-01-01
      • 2017-01-18
      • 1970-01-01
      • 2023-03-28
      • 2012-10-05
      相关资源
      最近更新 更多