JohnCoene / echarts4r

🐳 ECharts 5 for R
http://echarts4r.john-coene.com/
Other
601 stars 81 forks source link

Race and Waterfalls Charts #608

Open msgoussi opened 11 months ago

msgoussi commented 11 months ago

I am wondering if the package supports Race Charts (https://echarts.apache.org/examples/en/editor.html?c=bar-race-country) or waterfalls (https://echarts.apache.org/examples/en/editor.html?c=bar-waterfall2)!

rdatasculptor commented 11 months ago

Bar races, take a look at the example mentioned here: https://www.infoworld.com/article/3607068/plot-in-r-with-echarts4r.html

rdatasculptor commented 11 months ago

Regarding Waterfall scharts, you can use stacked bar charts. Here's an example: https://stackoverflow.com/a/69785189/1983395 Please, close the issue if these examples are what you were looking for. Thanks!

msgoussi commented 8 months ago

@rdatasculptor i have looked at the https://www.infoworld.com/article/3607068/plot-in-r-with-echarts4r.html and does not produce the same quality (https://echarts.apache.org/examples/en/editor.html?c=bar-race-country)

rdatasculptor commented 8 months ago

Which part of the quality of the bar chart race are you referring to? In the end it is all just echarts, rather echarts4r has been used or not. I am pretty sure you can achieve the same quality using echarts4r

msgoussi commented 8 months ago

The racing bars colors in https://echarts.apache.org/examples/en/editor.html?c=bar-race-country are much prettier and second the racing bars are moving so smooth (not jumping), and number next to bar are counting up, etc

rdatasculptor commented 8 months ago

TMHO it's all a matter of choosing the right parameters, the right colors and building it entirely the way you prefer. Do you have example code of your attempts? Maybe we can help to improve your code.