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 2020/05/08 22:48:25 UTC
[GitHub] [incubator-echarts] tomsoftware opened a new issue #12592: Drawing Envelopes in Line Charts
tomsoftware opened a new issue #12592:
URL: https://github.com/apache/incubator-echarts/issues/12592
### What problem does this feature solve?
I do want to mark the area in between two lines in a line-chart
The "confidence-band" is quiet a hack cause it shifts all data up over 0 and fakes all lables and ticks
https://echarts.apache.org/examples/en/editor.html?c=confidence-band
Is there a other way to set two series and mark the area in between
### What does the proposed API look like?
Chart.js uses a "fill" property to set the relative-index of the dataset to fill to
https://www.chartjs.org/docs/latest/charts/area.html
https://stackoverflow.com/questions/37866992/filling-area-between-two-lines-chart-js-v2
<!-- 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] [incubator-echarts] tomsoftware commented on issue #12592: Drawing Envelopes in Line Charts
Posted by GitBox <gi...@apache.org>.
tomsoftware commented on issue #12592:
URL: https://github.com/apache/incubator-echarts/issues/12592#issuecomment-626402653
By the way: there is a bug in the "confidence-band" example:
Line 31:
``` return params[2].name + '<br />' + params[2].value; ```
should be
``` return params[2].name + '<br />' + (params[2].value - base) * 100; ```
to cover up the shifting-hack (the base value is 3)
![grafik](https://user-images.githubusercontent.com/3290888/81512602-fca38480-9321-11ea-8595-3d856dea834f.png)
----------------------------------------------------------------
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] [incubator-echarts] Ovilia commented on issue #12592: Drawing Envelopes in Line Charts
Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12592:
URL: https://github.com/apache/incubator-echarts/issues/12592#issuecomment-631228716
I marked this to be a new feature but I don't think we plan to make this new feature recently. Because as I said, the suggested method to do so is to this as the demo does. It's not much a "hack" and it does complete the job without much bother.
----------------------------------------------------------------
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] [incubator-echarts] tomsoftware edited a comment on issue #12592: Drawing Envelopes in Line Charts
Posted by GitBox <gi...@apache.org>.
tomsoftware edited a comment on issue #12592:
URL: https://github.com/apache/incubator-echarts/issues/12592#issuecomment-626173154
Hi Ovilia: The "confidence-band" example is quiet a hack cause it uses a "base" value to shifts all y-values to be larger then 0 and fakes all lables and ticks.This is quite an bad idea cause I want to dynamicly add new values... how should I do this? Always calculating and applying a new base? Also this makes the code quiet complicated.
----------------------------------------------------------------
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] [incubator-echarts] tomsoftware edited a comment on issue #12592: Drawing Envelopes in Line Charts
Posted by GitBox <gi...@apache.org>.
tomsoftware edited a comment on issue #12592:
URL: https://github.com/apache/incubator-echarts/issues/12592#issuecomment-626173154
Hi Ovilia: The "confidence-band" example is quiet a hack cause it uses a "base" value to shifts all y-values to be larger then 0 and fakes all lables and ticks.This is quite a bed idee cause I want to dynamicly add new values... how should I do this? Always calculating and applying a new base? Also this makes the code quiet complicated.
----------------------------------------------------------------
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] [incubator-echarts] tomsoftware commented on issue #12592: Drawing Envelopes in Line Charts
Posted by GitBox <gi...@apache.org>.
tomsoftware commented on issue #12592:
URL: https://github.com/apache/incubator-echarts/issues/12592#issuecomment-631182205
@Ovilia because of that, this issue was marked as "new-feature" and not a "support" question. May you could add the "support" label again? In my opinion this is a missing feature.
----------------------------------------------------------------
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] [incubator-echarts] echarts-bot[bot] commented on issue #12592: Drawing Envelopes in Line Charts
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12592:
URL: https://github.com/apache/incubator-echarts/issues/12592#issuecomment-626052279
Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.
In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
Have a nice day! 🍵
----------------------------------------------------------------
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] [incubator-echarts] Ovilia commented on issue #12592: Drawing Envelopes in Line Charts
Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12592:
URL: https://github.com/apache/incubator-echarts/issues/12592#issuecomment-626089924
https://echarts.apache.org/examples/en/editor.html?c=confidence-band is the recommended way to do this.
----------------------------------------------------------------
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] [incubator-echarts] Ovilia commented on issue #12592: Drawing Envelopes in Line Charts
Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12592:
URL: https://github.com/apache/incubator-echarts/issues/12592#issuecomment-626440373
@tomsoftware `base` value is used because ECharts handles stacking in the following logic: negative lines/bars stack with negative bars and positive with positive ones.
----------------------------------------------------------------
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] [incubator-echarts] quillblue commented on issue #12592: Drawing Envelopes in Line Charts
Posted by GitBox <gi...@apache.org>.
quillblue commented on issue #12592:
URL: https://github.com/apache/incubator-echarts/issues/12592#issuecomment-626194746
Though agree with "confidence-band" is somehow a hack, I'm afraid I don't think putting `fill` property in line series is reasonable. Envelop should not belongs to line serires, but directly to the chart.
Maybe in further features of drawing area markers (using line series/axis as boundery) or drawing such kind of envelops via a new kind of chart extensions will be added, but currently confidence-band hack is the most recommend way to implement such kind of effects.
----------------------------------------------------------------
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] [incubator-echarts] tomsoftware edited a comment on issue #12592: Drawing Envelopes in Line Charts
Posted by GitBox <gi...@apache.org>.
tomsoftware edited a comment on issue #12592:
URL: https://github.com/apache/incubator-echarts/issues/12592#issuecomment-631182205
@Ovilia because of that, this issue was marked as "new-feature" and not a "support" question. May you could add the "new-feature" label again? In my opinion this is a missing feature.
----------------------------------------------------------------
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] [incubator-echarts] creadone commented on issue #12592: Drawing Envelopes in Line Charts
Posted by GitBox <gi...@apache.org>.
creadone commented on issue #12592:
URL: https://github.com/apache/incubator-echarts/issues/12592#issuecomment-651201240
I tried to make the similar visual with custom series. @tomsoftware, maybe you find something useful until desired feature not implemented official.
https://stackoverflow.com/questions/61724715/echarts-plot-the-variance-of-signals
----------------------------------------------------------------
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] [incubator-echarts] tomsoftware commented on issue #12592: Drawing Envelopes in Line Charts
Posted by GitBox <gi...@apache.org>.
tomsoftware commented on issue #12592:
URL: https://github.com/apache/incubator-echarts/issues/12592#issuecomment-626173154
Hi Ovilia: The "confidence-band" example is quiet a hack cause it uses a "base" value to shifts all y-values to be larger then 0 and fakes all lables and ticks.This is quite a bed idee cause I want to dynamicly add new values... how should I do this? Always calculating applying a new base? Also this makes the code quiet complicated.
----------------------------------------------------------------
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