Highcharts:可能有多个传说吗?

dan*_*cek 5 legend highcharts

我是Highcharts的新手,到目前为止看起来很棒.但是,我需要将我的六个系列分组为图例中的三列.这可以通过限制图例宽度和使用来实现legendIndex.Coffeescript中的Config片段:

  legend:
    # 3 items side-by-side with some margins
    itemWidth: Math.floor(config.width / 3.8)
  series: [
      # top left
      legendIndex: 1
      ...
    ,
      # bottom left
      legendIndex: 4
      ...
    ...  # 4 more series; other columns in indices 2,5 and 3,6
    ]
Run Code Online (Sandbox Code Playgroud)

问题是,我还需要为每个组分别设置一个标题.这样的东西(ascii art):

Title A               Title B                 Title C
[ ] Item A1           [ ] Item B1             [ ] Item C1
[ ] Item A2           [ ] Item B2             [ ] Item C2
Run Code Online (Sandbox Code Playgroud)

请注意,我也需要导出功能,因此我无法理解HTML定位.我怎样才能让我的传奇看起来像这样?

dba*_*_uk 0

您可以使用 Highcharts 渲染器将自定义文本放置到图表上

http://api.highcharts.com/highcharts#Renderer

您无法制作多个图例,但您可以对单个图例执行很多操作,使其看起来像多个图例。