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/04/19 08:07:32 UTC
[GitHub] [echarts] ZJNLJH opened a new issue, #16911: [Bug] The prompt of broken line icon is abnormal
ZJNLJH opened a new issue, #16911:
URL: https://github.com/apache/echarts/issues/16911
### Version
5.3.2
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
1. Open link(https://echarts.apache.org/examples/zh/editor.html?c=line-marker)
2. Change the trigger under tooltip to item
3. Move the mouse to 11.14
4. It is found that the prompt is different from the prompt when the mouse moves on the marking line
### Current Behavior
Test Echarts
### Expected Behavior
Test Echarts
### 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
[GitHub] [echarts] Ovilia commented on issue #16911: [Bug] The prompt of broken line icon is abnormal
Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #16911:
URL: https://github.com/apache/echarts/issues/16911#issuecomment-1103582007
Sorry, I cannot understand. Can you give an image to illustrate what's wrong?
--
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] plainheart closed issue #16911: [Bug] The prompt of broken line icon is abnormal
Posted by GitBox <gi...@apache.org>.
plainheart closed issue #16911: [Bug] The prompt of broken line icon is abnormal
URL: https://github.com/apache/echarts/issues/16911
--
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] jiawulin001 commented on issue #16911: [Bug] The prompt of broken line icon is abnormal
Posted by GitBox <gi...@apache.org>.
jiawulin001 commented on issue #16911:
URL: https://github.com/apache/echarts/issues/16911#issuecomment-1105063686
So the problem is like this:
|Tooltip when mouse on markline|Tooltip when mouse on markline's label (11.14)|
|---|---|
|![image](https://user-images.githubusercontent.com/14244944/164443175-bf218fe8-466c-4958-b707-eb78dca0ecbf.png)|![image](https://user-images.githubusercontent.com/14244944/164443374-c138bb8a-6eab-44a0-b6d7-d8d53a70d865.png)|
<details>
<summary>Code to reproduce</summary>
```
option = {
title: { text: 'Temperature Change in the Coming Week' },
tooltip: { trigger: 'item' },
legend: {},
toolbox: {
show: true,
feature: {
dataZoom: { yAxisIndex: 'none' },
dataView: { readOnly: false },
magicType: { type: ['line', 'bar'] },
restore: {},
saveAsImage: {}
}
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: { type: 'value', axisLabel: { formatter: '{value} °C' } },
series: [
{
name: 'Highest',
type: 'line',
data: [10, 11, 13, 11, 12, 12, 9],
markPoint: {
data: [
{ type: 'max', name: 'Max' },
{ type: 'min', name: 'Min' }
]
},
markLine: { data: [{ type: 'average', name: 'Avg' }] }
},
{
name: 'Lowest',
type: 'line',
data: [1, -2, 2, 5, 3, 2, 0],
markPoint: {
data: [{ name: '周最低', value: -2, xAxis: 1, yAxis: -1.5 }]
},
markLine: {
data: [
{ type: 'average', name: 'Avg' },
[
{ symbol: 'none', x: '90%', yAxis: 'max' },
{
symbol: 'circle',
label: { position: 'start', formatter: 'Max' },
type: 'max',
name: '最高点'
}
]
]
}
}
]
};
```
</details>
This is because the dispatcher of markLine and markLine's label is different, so the `dataModel` extracted is different. At this line:
https://github.com/apache/echarts/blob/4a52199842039d7fa6019ee8584d1a395fbc771a/src/component/tooltip/TooltipView.ts#L656
markLine's dataModel is literally `markline`, but markline's label has no dataModel so it's given a seriesModel, which result in its tooltip displaying the first point of the series.
I think a good way to solve this is to tell the model-getter to inheritate a model from component's parent. But I am not sure whether this issue is worth solving. What do you guys think? @Ovilia @pissang
--
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