You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/07/19 07:06:07 UTC
[GitHub] [echarts] 601286825nj opened a new issue, #17401: [Bug] Legend left right setup
601286825nj opened a new issue, #17401:
URL: https://github.com/apache/echarts/issues/17401
### Version
5.3.3
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
https://echarts.apache.org/examples/zh/editor.html?c=bar-stack
legend: {type:'scroll',right:80,left:20},
### Current Behavior
when set legend.left and legend.right at the same time. Only legend.left works
### Expected Behavior
legend.left and legend.right all in effect.
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
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: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] Legend left right setup [echarts]
Posted by "ja-plus (via GitHub)" <gi...@apache.org>.
ja-plus closed issue #17401: [Bug] Legend left right setup
URL: https://github.com/apache/echarts/issues/17401
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] Legend left right setup [echarts]
Posted by "molihub (via GitHub)" <gi...@apache.org>.
molihub commented on issue #17401:
URL: https://github.com/apache/echarts/issues/17401#issuecomment-2026715965
As shown in the following code, if there are enough data series, the legend display will exceed the range controlled by the 'right' parameter.
```javascript
option = {
"xAxis": {
"type": "category",
"name": "x",
"axisLine": {
"show": true
},
},
"yAxis": {
"type": "value",
"name": "y",
"axisLine": {
"show": true
},
},
"series": [{
"type": "line",
"seriesLayoutBy": "row",
"name": "1",
"encode": {
"x": 0,
"y": 1
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "2",
"encode": {
"x": 0,
"y": 2
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "3",
"encode": {
"x": 0,
"y": 3
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "4",
"encode": {
"x": 0,
"y": 4
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "5",
"encode": {
"x": 0,
"y": 5
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "6",
"encode": {
"x": 0,
"y": 6
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "7",
"encode": {
"x": 0,
"y": 7
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "8",
"encode": {
"x": 0,
"y": 8
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "9",
"encode": {
"x": 0,
"y": 9
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "10",
"encode": {
"x": 0,
"y": 10
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "11",
"encode": {
"x": 0,
"y": 11
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "12",
"encode": {
"x": 0,
"y": 12
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "13",
"encode": {
"x": 0,
"y": 13
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "14",
"encode": {
"x": 0,
"y": 14
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "15",
"encode": {
"x": 0,
"y": 15
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "16",
"encode": {
"x": 0,
"y": 16
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "17",
"encode": {
"x": 0,
"y": 17
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "18",
"encode": {
"x": 0,
"y": 18
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "19",
"encode": {
"x": 0,
"y": 19
}
}, {
"type": "line",
"seriesLayoutBy": "row",
"name": "20",
"encode": {
"x": 0,
"y": 20
}
}
],
"legend": {
"type": "scroll",
"left": 120,
"right": 250,
}
};
```
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] Legend left right setup [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #17401:
URL: https://github.com/apache/echarts/issues/17401#issuecomment-4151099136
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.
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org