You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "tlbb764652810 (via GitHub)" <gi...@apache.org> on 2025/12/08 10:17:14 UTC
[I] [Bug] 当使用dataset时,markline会报错 [echarts]
tlbb764652810 opened a new issue, #21415:
URL: https://github.com/apache/echarts/issues/21415
### Version
6.0
### Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=line-simple
### Steps to Reproduce
好用的例子如下
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [
{
data: [150, 230, 224, 218, 135, 147, 260],
type: 'bar',
markLine: {
data: [{
name: '平均线',
// 支持 'average', 'min', 'max'
type: 'average'
}]
}
}
]
};
不好用的例子如下
option = {
dataset: {
source: [
['score', 'amount', 'product'],
[89.3, 58212, 'Matcha Latte'],
[57.1, 78254, 'Milk Tea'],
[74.4, 41032, 'Cheese Cocoa'],
[50.1, 12755, 'Cheese Brownie'],
[89.7, 20145, 'Matcha Cocoa'],
[68.1, 79146, 'Tea'],
[19.6, 91852, 'Orange Juice'],
[10.6, 101852, 'Lemon Juice'],
[32.7, 20112, 'Walnut Brownie']
]
},
xAxis: {type: 'category'},
yAxis: {
type: 'value'
},
series: [
{
type: 'bar',
encode: {
x: 'product',
y: 'amount'
},
markLine: {
data: [{
name: '平均线',
type: 'average'
}]
}
}
]
};
### Current Behavior
不好用的例子加载报错
### Expected Behavior
<img width="1133" height="702" alt="Image" src="https://github.com/user-attachments/assets/1673f432-1d49-474a-bbbb-3292b9f40b06" />
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
之前v5的版本是好用的
--
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] 当使用dataset时,markline会报错 [echarts]
Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart commented on issue #21415:
URL: https://github.com/apache/echarts/issues/21415#issuecomment-3678087787
Thanks for your report. It seems this bug was introduced in #20682.
Relavant code snippet: https://github.com/apache/echarts/blob/6.0.0/src/data/SeriesData.ts#L321-L323
--
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] 当使用dataset时,markline会报错 [echarts]
Posted by "100pah (via GitHub)" <gi...@apache.org>.
100pah commented on issue #21415:
URL: https://github.com/apache/echarts/issues/21415#issuecomment-3678656489
Fixed in #21439
--
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] 当使用dataset时,markline会报错 [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #21415:
URL: https://github.com/apache/echarts/issues/21415#issuecomment-3628791144
duplicate of #21300
--
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] 当使用dataset时,markline会报错 [echarts]
Posted by "100pah (via GitHub)" <gi...@apache.org>.
100pah closed issue #21415: [Bug] 当使用dataset时,markline会报错
URL: https://github.com/apache/echarts/issues/21415
--
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] 当使用dataset时,markline会报错 [echarts]
Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #21415:
URL: https://github.com/apache/echarts/issues/21415#issuecomment-3626122354
@tlbb764652810 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**
[Bug] When using dataset, markline will report an error
</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: 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