echarts-bot[bot] commented on issue #19142:
URL: https://github.com/apache/echarts/issues/19142#issuecomment-1728851232
@Chunliuliu 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. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**TITLE**
[Feature] The same series uses different y-axes
**BODY**
### What problem does this feature solve?
The same series uses different y-axes
### What does the proposed API look like?
const option = {
xAxis: {
type: 'category',
data: ['item 1', 'item 2', 'item 3', 'item 4', 'item 5'],
},
yAxis: [
{
type: 'value',
name: 'Y-axis 1',
},
{
type: 'value',
name: 'Y-axis 2',
position: 'right', // Place the second y-axis on the right
},
],
series: [
{
name: 'Data Series 1',
type: 'bar',
data: [
{ value: 120, yAxisIndex: 0 }, // Use the first y-axis
{ value: 10000, yAxisIndex: 1 }, // Use the second y-axis
{ value: 150, yAxisIndex: 0 }, // Use the first y-axis
{ value: 12000, yAxisIndex: 1 }, // Use the second y-axis
{ value: 70, yAxisIndex: 0 }, // Use the first y-axis
],
Other series of configurations...
},
],
};
</details>
--
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]