Chunliuliu opened a new issue, #19142:
URL: https://github.com/apache/echarts/issues/19142
### What problem does this feature solve?
同一个系列使用不同的y轴
### What does the proposed API look like?
const option = {
xAxis: {
type: 'category',
data: ['项目1', '项目2', '项目3', '项目4', '项目5'],
},
yAxis: [
{
type: 'value',
name: 'Y 轴 1',
},
{
type: 'value',
name: 'Y 轴 2',
position: 'right', // 将第二个 y 轴放置在右侧
},
],
series: [
{
name: '数据系列1',
type: 'bar',
data: [
{ value: 120, yAxisIndex: 0 }, // 使用第一个 y 轴
{ value: 10000, yAxisIndex: 1 }, // 使用第二个 y 轴
{ value: 150, yAxisIndex: 0 }, // 使用第一个 y 轴
{ value: 12000, yAxisIndex: 1 }, // 使用第二个 y 轴
{ value: 70, yAxisIndex: 0 }, // 使用第一个 y 轴
],
// 其他系列配置...
},
],
};
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]