【问题标题】:show multiple axis to highcharts chart and present axis to left将多轴显示为高图图表并将轴显示在左侧
【发布时间】:2022-10-04 16:19:36
【问题描述】:

尝试创建如下图所示的图表

Tried to get most of it working fiddle is in 
https://jsfiddle.net/BlackLabel/j1pz28y3/

但只有轴是问题。无法获得不同图表的多个轴以及左侧而不是右侧的轴请通过指向一些演示来帮助我

【问题讨论】:

    标签: charts highcharts label axis


    【解决方案1】:

    您需要将yAxis.opposite 设置为false。您的图像仅显示两个轴(第一个用于线条和标志系列,第二个用于列),因此这是基于图像的示例配置:

    yAxis: [{
      opposite: false,
      height: '60%',
            labels:{
            align: 'center'
            }
    }, {
      opposite: false,
      top: '65%',
      height: '40%',
      offset: 0
    }],
    

    演示:https://jsfiddle.net/BlackLabel/at8Lyod4/

    API参考:https://api.highcharts.com/highstock/yAxis.opposite

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-04
      • 1970-01-01
      • 2022-12-11
      • 2021-03-01
      • 2018-01-29
      相关资源
      最近更新 更多