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 2021/06/15 10:55:51 UTC
[GitHub] [echarts] elewen opened a new issue #15156: markLine 指定 name 无效
elewen opened a new issue #15156:
URL: https://github.com/apache/echarts/issues/15156
### Version
5.1.2
### Steps to reproduce
series: [
{
type: 'line',
data: [123, 321, 231, 213, 132, 312],
markLine: {
data: [
{
xAxis: '20210615',
name: '<<<历史 未来>>>',
}
],
}
}
]
### What is expected?
希望能够显示 '<<<历史 未来>>>'
### What is actually happening?
实际显示的是 '20210615'
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
<!-- This issue is in English. DO NOT REMOVE -->
--
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.
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
[GitHub] [echarts] plainheart commented on issue #15156: markLine 指定 name 无效
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #15156:
URL: https://github.com/apache/echarts/issues/15156#issuecomment-861917484
可以试试使用 [`label.formatter`](https://echarts.apache.org/zh/option.html#series-line.markLine.data.0.label.formatter)
--
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.
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
[GitHub] [echarts] elewen commented on issue #15156: markLine 指定 name 无效
Posted by GitBox <gi...@apache.org>.
elewen commented on issue #15156:
URL: https://github.com/apache/echarts/issues/15156#issuecomment-861983715
> 可以试试使用 [`label.formatter`](https://echarts.apache.org/zh/option.html#series-line.markLine.data.0.label.formatter)
可以了, 谢谢. 但为什么有些情况下设置的 name 又是有效的, 比如两个坐标点之间的连线. 不知道这是不是bug, 我没找到官方文档对此差异的解释
--
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.
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
[GitHub] [echarts] elewen closed issue #15156: markLine 指定 name 无效
Posted by GitBox <gi...@apache.org>.
elewen closed issue #15156:
URL: https://github.com/apache/echarts/issues/15156
--
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
[GitHub] [echarts] echarts-bot[bot] commented on issue #15156: markLine 指定 name 无效
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15156:
URL: https://github.com/apache/echarts/issues/15156#issuecomment-861399949
--
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.
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
[GitHub] [echarts] elewen edited a comment on issue #15156: markLine 指定 name 无效
Posted by GitBox <gi...@apache.org>.
elewen edited a comment on issue #15156:
URL: https://github.com/apache/echarts/issues/15156#issuecomment-861404457
> ### Version
> 5.1.2
>
> ### Steps to reproduce
> ```js
> series: [
> {
> type: 'line',
> data: [123, 321, 231, 213, 132, 312],
> markLine: {
> data: [
> {
> xAxis: '20210615',
> name: '<<<历史 未来>>>',
> }
> ],
> }
> }
> ]
> ```
>
> ### What is expected?
> 希望能够显示 '<<<历史 未来>>>'
>
> ### What is actually happening?
> 实际显示的是 '20210615'
另一个问题是这种情况下无法隐藏终点的箭头,因为这条线是通过一个对象配置生成的, 而不是一个数组的两个对象生成的, 按照文档配置项描述,终点的箭头需要在数组的第二项配置. 如果需要隐藏终点的箭头该如何配置?
----------------更新-------------
关于隐藏终点箭头, 直接在 markLine 下配置即可, 又仔细看了下文档试出来的.
--
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.
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
[GitHub] [echarts] pissang commented on issue #15156: markLine 指定 name 无效
Posted by GitBox <gi...@apache.org>.
pissang commented on issue #15156:
URL: https://github.com/apache/echarts/issues/15156#issuecomment-862019053
@elewen 可以举个例子吗?
--
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.
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
[GitHub] [echarts] elewen commented on issue #15156: markLine 指定 name 无效
Posted by GitBox <gi...@apache.org>.
elewen commented on issue #15156:
URL: https://github.com/apache/echarts/issues/15156#issuecomment-861404457
> ### Version
> 5.1.2
>
> ### Steps to reproduce
> ```js
> series: [
> {
> type: 'line',
> data: [123, 321, 231, 213, 132, 312],
> markLine: {
> data: [
> {
> xAxis: '20210615',
> name: '<<<历史 未来>>>',
> }
> ],
> }
> }
> ]
> ```
>
> ### What is expected?
> 希望能够显示 '<<<历史 未来>>>'
>
> ### What is actually happening?
> 实际显示的是 '20210615'
另一个问题是这种情况下无法隐藏终点的箭头,因为这条线是通过一个对象配置生成的, 而不是一个数组的两个对象生成的? 如果需要隐藏终点的箭头该如何配置?
--
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.
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
[GitHub] [echarts] elewen edited a comment on issue #15156: markLine 指定 name 无效
Posted by GitBox <gi...@apache.org>.
elewen edited a comment on issue #15156:
URL: https://github.com/apache/echarts/issues/15156#issuecomment-861404457
> ### Version
> 5.1.2
>
> ### Steps to reproduce
> ```js
> series: [
> {
> type: 'line',
> data: [123, 321, 231, 213, 132, 312],
> markLine: {
> data: [
> {
> xAxis: '20210615',
> name: '<<<历史 未来>>>',
> }
> ],
> }
> }
> ]
> ```
>
> ### What is expected?
> 希望能够显示 '<<<历史 未来>>>'
>
> ### What is actually happening?
> 实际显示的是 '20210615'
另一个问题是这种情况下无法隐藏终点的箭头,因为这条线是通过一个对象配置生成的, 而不是一个数组的两个对象生成的, 按照文档配置项描述,终点的箭头需要在数组的第二项配置. 如果需要隐藏终点的箭头该如何配置?
--
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.
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