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/08/26 11:32:29 UTC

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

creadone commented on issue #10987:
URL: https://github.com/apache/incubator-echarts/issues/10987#issuecomment-680823607


   > @creadone I'm trying to achieve the same thing with having straight lines, please would you be able to share how you managed to achieve it?
   
   I was in a hurry and took the side of darkness - fixed it in the source 🤦  But it's was really fast, take a look on micro changes.
   https://gist.github.com/creadone/d91447c21429d7a96e26415ba4e55f0c/revisions
   
   ```diff
   diff --git a/assets/js/plugins/echarts/echarts.js b/assets/js/plugins/echarts/echarts.js
   index 3d7ffca..daf6eb4 100644
   --- a/assets/js/plugins/echarts/echarts.js
   +++ b/assets/js/plugins/echarts/echarts.js
   @@ -69072,9 +69072,9 @@ extendChartView({
         shape: {
          points: points0,
          stackedOnPoints: points1,
   -     smooth: 0.4,
   -     stackedOnSmooth: 0.4,
   -     smoothConstraint: false
   +    smooth: 0,
   +    stackedOnSmooth: 0,
   +    smoothConstraint: true
     },
     z2: 0
   });
   ```


----------------------------------------------------------------
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