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 2019/09/25 13:44:54 UTC

[GitHub] [incubator-echarts] creadone opened a new issue #10987: Correct way to straighten smoothed lines for ThemeRiver chart (question)

creadone opened a new issue #10987: Correct way to straighten smoothed lines for ThemeRiver chart (question)
URL: https://github.com/apache/incubator-echarts/issues/10987
 
 
   ### Description
   
   Echarts has great chart type ThemeRiver (also known as streamgraph) but this type has no options `smooth` or `smoothMonotone` like in other chart types. It does not allow to straighten the lines. 
   
   I found (probably) [place in code](https://github.com/apache/incubator-echarts/blob/master/src/chart/themeRiver/ThemeRiverView.js#L98-L107) where this options inlined but it cannot be changed from official API. Rewrite this code directly will cause a problem with the future updates.
   
   ### What problem does this feature solve?
   
   Smooth lines in charts need for best looking but when you need greater accuracy the only way — to straighten the lines.
   
   ### What does the proposed API look like?
   
   The best option to do [as in other types](https://echarts.apache.org/en/option.html#series-line.smooth) of diagrams:
   
   ![image](https://user-images.githubusercontent.com/990803/62716044-431e2880-ba0a-11e9-938e-43cec61e5cb9.png)
   
   ### Workaround
   
   Is there possible to overload the [`process`](https://github.com/apache/incubator-echarts/blob/master/src/chart/themeRiver/ThemeRiverView.js#L68) function without changes source code? Something like the plugin or extension API. Maybe I can intercept the lines drawing ...
   
   <!-- 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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org