Comments (8)
cool thanks. I'll continue to post code chunks where I see maybe useful, you can take a look when you're available.
from echarts4r.
@JohnCoene could you take a look at your example code again? Latest version is breaking your example.
from echarts4r.
I think it would be really useful to include the example of using itemStyle=
in the help section for this function. It is hard to discern what the desired format should be, and the error message itself is not very informative.
from echarts4r.
Hi Shows,
Thank you for the suggesting. I have implemented it, the only issue being that itemStyle
is not applied to parent
and only to child
. itemStyle
is an array in the original library which means we need to pass a list
of data.frame
s or a list
of list
s.
It is imperfect but may work in future version. I plan on focusing more on echarts4r
around October once work quiets down, I'll tackle this issue (amongst many others).
example
df <- data.frame(
parent = c("earth", "earth", "earth", "mars", "mars"),
child = c("forest", "ocean", "iceberg", "elon", "curiosity"),
value = ceiling(rnorm(5, 10, 2))
)
# add styles
df$color <- "red"
df$borderColor <- "black"
df %>%
tidyr::nest(color, borderColor, .key = "style") %>% # nest
e_charts() %>%
e_sunburst(parent, child, value, style)
Let me know what you think.
from echarts4r.
Thank you! Feel free to make a PR.
from echarts4r.
Hi Shows, I must thank you for sticking to the package despite all its bugs! I just pushed a fix. Thanks for reporting that :)
from echarts4r.
By the way, I also pushed some great performances improvements (in the rendered data.frame) by greatly lightening the output, I hope you see a difference.
from echarts4r.
Thanks for pointing that out, I added details
as well as an example to the e_sunburst
man page (dev version of course).
from echarts4r.
Related Issues (20)
- timeline with multiple-y-axis setting y axis doesn't work
- timeline with multiple-y-axis setting y axis doesn't work
- e_bar chart combine with e_pie chart HOT 3
- Formatter with ec.clmn HOT 1
- e_river HOT 2
- Race and Waterfalls Charts HOT 6
- 'Cannot find function renderEcharts4r' error in Shiny Quarto document HOT 1
- Problem chaining e_text_g for multiple text placement HOT 2
- Question on shared dataset charts HOT 4
- `e_showtip_p`/ `e_dispatch_action_p` not working in modularized shiny app, attempting to debug with local fork but `debugger` doesn't register in the `addCustomMessageHandler` HOT 2
- How can I change the height and width of the elements (rectangles) on the heat map? HOT 3
- Themes from theme builder needs editing
- Make echarts4r available for webR HOT 1
- [Bug] on example code of Histogram HOT 1
- How to give each grid its own axis maximum? HOT 1
- e_radar not supporting group_by? HOT 1
- Scoring ring HOT 4
- Formatting dataView HOT 2
- margin not working when there are multiple groups of series HOT 10
- leaflet broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from echarts4r.