Aligning the xAxis of highcharts

后端 未结 1 478
遥遥无期
遥遥无期 2021-01-17 01:45

https://jsfiddle.net/hjzeo6u2/

In the above Link I have reproduced an issue where I wanted to align the X-Axis labels just below the respective series plots. As of n

相关标签:
1条回答
  • 2021-01-17 02:13

    Would you like to achieve something like this? Demo

    chart: {
      events: {
        render() {
          let chart = this,
            xAxis = chart.xAxis,
            controlLine = chart.yAxis[0].resizer.controlLine;
    
          xAxis[1].axisGroup.translate(0, -xAxis[1].axisGroup.getBBox().y + controlLine.getBBox().y)
          xAxis[1].labelGroup.translate(0, -xAxis[1].axisGroup.getBBox().y + controlLine.getBBox().y)
        }
      }
    },
    
    0 讨论(0)
提交回复
热议问题