You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "Raphyyy (via GitHub)" <gi...@apache.org> on 2023/09/11 17:30:07 UTC
[GitHub] [echarts] Raphyyy opened a new issue, #19108: [Bug] markLine / markArea / markPoint "z" value doesn't follow the value of its parent serie
Raphyyy opened a new issue, #19108:
URL: https://github.com/apache/echarts/issues/19108
### Version
5.4.3
### Link to Minimal Reproduction
https://jsfiddle.net/sujatve5/
### Steps to Reproduce
https://jsfiddle.net/sujatve5/
### Current Behavior
If `z` value is set to a value greater than 5 on any serie in the chart, `markLine` will always be hidden by the series
### Expected Behavior
`markLine` should follow the `z` value of its parent serie to be on top
### Environment
```markdown
- OS: Windows 10
- Browser: Chrome latest
- Framework: -
```
### Any additional comments?
When `z` has to be defined on multiple series, there is no way to make a `markLine` to be above of the rest.
Either the `markLine` is defined on a serie with data or in a new serie with a higher `z` doesn't change anything.
I need to set `z` value on my series as I want my bar series to be bellow my line and scatter series. I also use `z` to define a specific order with series of the same type.
The thing is that `markLine` doesn't seems to care about any `z`. **It seems to have a hard defined `z` of 5 for the line and a `z` of 6 for its label**. In the example, if you set the `z` of the first bar serie to 4, the markLine and its label goes well in front. But that is not suitable as you can have multiple serie with higher `z`.
The same goes for markArea or markPoint.

This use case sounds pretty standard. I just want to show a threshold bar above my series.
I came accross every issues opened about this subject and it looks like it has been a problem for a while now (since 2017) :
https://github.com/apache/echarts/issues/6690
https://github.com/apache/echarts/issues/9974
https://github.com/apache/echarts/issues/12629
https://github.com/apache/echarts/issues/14190
--
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] MatthiasMert commented on issue #19108: [Bug] markLine / markArea / markPoint "z" value doesn't follow the value of its parent serie
Posted by "MatthiasMert (via GitHub)" <gi...@apache.org>.
MatthiasMert commented on issue #19108:
URL: https://github.com/apache/echarts/issues/19108#issuecomment-1715054648
Clearly a bug.
For your use case it should be fine if you just not touch the z of the bar series.
--
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] markLine / markArea / markPoint "z" value doesn't follow the value of its parent serie [echarts]
Posted by "clark-tan (via GitHub)" <gi...@apache.org>.
clark-tan commented on issue #19108:
URL: https://github.com/apache/echarts/issues/19108#issuecomment-1751624115
1.When markLine and markPoint are set on a line at the same time, the hierarchy of the two cannot be modified through z, and the z of markPoint is always greater than the z of markLine.
2.markLine and markPoint are set respectively for two different lines. After the zlevel of the two lines is changed, the z of markPoint is always greater than the z of 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.
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] Raphyyy commented on issue #19108: [Bug] markLine / markArea / markPoint "z" value doesn't follow the value of its parent serie
Posted by "Raphyyy (via GitHub)" <gi...@apache.org>.
Raphyyy commented on issue #19108:
URL: https://github.com/apache/echarts/issues/19108#issuecomment-1715769041
> Clearly a bug.
>
> For your use case it should be fine if you just not touch the z of the bar series.
Unfortunately I need to use z value for other stuff, like disabling emphasis state on chart hovering (https://github.com/apache/echarts/issues/14952#issuecomment-842730046). I also want my Threshold to appears on top of my line and scatter series, not only bars, and I have charts with plenty of series.
--
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] markLine / markArea / markPoint "z" value doesn't follow the value of its parent serie [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19108:
URL: https://github.com/apache/echarts/issues/19108#issuecomment-6255183108
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!
--
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] helgasoft commented on issue #19108: [Bug] markLine / markArea / markPoint "z" value doesn't follow the value of its parent serie
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19108:
URL: https://github.com/apache/echarts/issues/19108#issuecomment-1718393670
The default _z_ for MarkLine is 5 ([see source](https://github.com/apache/echarts/blob/fbee94d5dd3fe8a957524620eb3657145670bd50/src/component/marker/MarkLineModel.ts#L116)) and is probably not incremented with its parent's z-value.
> want my Threshold to appears on top of my line and scatter series
One workaround to this bug is to use **fractional _z_ values** for main series - [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmAJ4gCmRA5JALblUC-ANGrCTvkUrC23uQBOEcoVgBtNulTpZsAIbQIteZBhEAZvIA2A1nPQATVfKKSDs8QEYAbAE4ALA4DMADgcAGL1-awrHgDobAF19CwlbRxc7G28fWAB2AOcQsItreydPVziPXxsAj1dQqQMMqIcAJly82ALnOxLwiMynZ2q4_KDKpvDyrKdcroBWXvTIrOHYzrqghzGyiacbHJmCooW5fqdVmeGA11G0xdaHOw7vLoTg0vRN2FIKagAjeUEqY_QALyJAm1gAPQA2AQDSwL6wAA8iAcILAVDwsGAAGtSnw5DIDIplKooNBNDo9LdYMYwKYJMT0Ns3J4Zkl3PcqUsGtNLrB9sN5p9LEtskNYA4AsNitymacLmzBfZGS0Ku1-fsPFYZdssgrClzKbLJqz4orrqLtctdvEpSKtaqTaahY1DarzurlcT7o9KLAqNoINAGNyfrBAgk0cdMXJXdRPd6PsSVIJkQAZL1ukMGCPkADKpG0Sa16AAxsBtMBBNQAMS53MJDyVqPNdAAdwghjAAAsiJVDegw-68AXG1QtejwngSLRngXqNAYD6taTyeZa8nmtB5PRqAAVZuCUTNguGGu19AcXBiGwd2TaeTPcjabg5gwaIsqMBgITUJDPRj7g_oEDAPAQNR8XdL1_0MdMyUEMA11AL9vwfaAwDTCAvjdaozzkQx8DJaBczdaxalGO90EYO8SOaG4LDI2QqJuRgAG4gA).

--
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] markLine / markArea / markPoint "z" value doesn't follow the value of its parent serie [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19108:
URL: https://github.com/apache/echarts/issues/19108#issuecomment-6102226577
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
[GitHub] [echarts] Raphyyy commented on issue #19108: [Bug] markLine / markArea / markPoint "z" value doesn't follow the value of its parent serie
Posted by "Raphyyy (via GitHub)" <gi...@apache.org>.
Raphyyy commented on issue #19108:
URL: https://github.com/apache/echarts/issues/19108#issuecomment-1723264352
Thanks for the workaround @helgasoft
Unfortunately for me it's still not a good solution as I also have some charts with markArea and I need it to stay in the background. You can see in the following image that the line and the bar serie stay behind the markArea.

I guess I'll just make `z` value start incrementing from 5 if I have a markArea serie, as the threshold bar will not likely to be displayed at the same time (our users can fully customize their charts).
--
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] markLine / markArea / markPoint "z" value doesn't follow the value of its parent serie [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #19108: [Bug] markLine / markArea / markPoint "z" value doesn't follow the value of its parent serie
URL: https://github.com/apache/echarts/issues/19108
--
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