echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Feature] x轴的axisLabel可以跟随axisLine更新

Open JianbinWei opened this issue 4 years ago • 2 comments

What problem does this feature solve?

option = {
  xAxis: {
    type: 'category',
    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
  },
  yAxis: {
    type: 'value',
    max: 500,
    min: -500
  },
  series: [
    {
      data: [150, 230, 224, 218, 135, 147, 260],
      type: 'line'
    }
  ]
};

根据上述代码运行图示,x轴的axisLabel不只是放置在grid下方,可以跟随 axisLine上下更新。

What does the proposed API look like?

axisLabel: {
  position: 'auto'
}

JianbinWei avatar Feb 24 '22 03:02 JianbinWei

@JianbinWei It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

[Feature] The axisLabel of the x-axis can be updated with the axisLine

BODY

What problem does this feature solve?

option = { xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] }, yAxis: { type: 'value', max: 500, min: -500 }, series: [ { data: [150, 230, 224, 218, 135, 147, 260], type: 'line' } ] };

Running the diagram according to the above code, the axisLabel of the x-axis is not only placed below the grid, but can be updated up and down following the axisLine.

What does the proposed API look like?

axisLabel: { position: 'auto' }

echarts-bot[bot] avatar Feb 24 '22 03:02 echarts-bot[bot]

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] avatar Feb 24 '24 21:02 github-actions[bot]

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

github-actions[bot] avatar Mar 03 '24 21:03 github-actions[bot]