Questions tagged [echarts4r]

Use this tag for questions related to the usage of the [echarts4r] package, which provides functions to facilitate making interactive charts in the R programming language, by leveraging the Echarts JavaScript library.

The package provides functions to make it easy to create interactive charts in the R programming language by leveraging the Javascript library which includes 36 chart types, themes, proxies and animations.

An overview and introduction to the package can be found on the package website.

105 questions
1
vote
1 answer

Gradient color in radarchart using echarts in R

I want to reproduce this gradient color effect using echarts in R https://www.programmersought.com/article/75124213435/. As far as I have understood it is possible to recreate all echarts in R using nested lists. I´ve tried following some of the…
Robin Lindström
  • 622
  • 4
  • 15
1
vote
1 answer

How to use Callbacks with echarts4r in a Shiny App

I am looking to retrieve the user selected information in echarts4r objects in the server, for server side logic. I am looking to use the callbacks id_clicked_data, id_mouseover_data, etc found here…
CallumH
  • 751
  • 1
  • 7
  • 22
1
vote
1 answer

How to set the local month names in echarts4r calendar

Is there a way to set the language of the dates in the echarts4r calendar to the local time? This is how to get the Icelandic abbreviated month names but in the echarts4r calendar it's still in English. Sys.setlocale("LC_TIME",…
Valtyr
  • 123
  • 1
  • 12
0
votes
1 answer

echarts4r and R Shiny: use of callbacks with grouped bar chart

I am creating a grouped bar chart with echarts4r in a Shiny app. Each bar corresponds to a row in the data frame. I would like to display a table showing the row in a pop-up window that appears when I click on a bar. In the minimal Shiny app below,…
Dennis
  • 23
  • 5
0
votes
0 answers

Echarts4r + Boxplot + Jitter points: How to make this combination work properly?

How to make this combination work? I can create the boxplot. I can create a scatter plot with jittered points, but I cannot put them together. Does anyone have any idea? The idea is to continue using echarts…
0
votes
1 answer

echarts4r pie chart highlight colour

I have a dataset in a similar format to the below. I would like to highlight the "blue_wedge" class in one colour (e.g., blue) and for all other wedges (in this example "2nd" and "3rd" classes) to share a second colour (e.g., "grey") -- helping me…
0
votes
1 answer

Echarts4r polar barchart can't show a third data field in the tooltip

I was trying to create a polar barchart with the echarts4r library and the chart is generated properly. I have x, y, and z fields in the dataset. To generate the chart we need only the x and y fields. Now I want to show x, y and z in the tooltip. x…
0
votes
1 answer

echarts4r, shiny, dynamic multiplot

I would like to generate dynamic multiplots in R with shiny and echarts4r. I expect 3 different charts, but get 3 times the same chart and i don't get why. If I plot them non dynamically, I get the expectet…
Julien P
  • 21
  • 4
0
votes
1 answer

How to plot two different data sets of same column using echarts4r?

I have sample data for two datasets: one <- data.frame( Timestamp = seq(from = as.POSIXct("2023-07-01"), by = "days", length.out = 5), `Heat Capacity` = c(10, 15, 8, 12, 20) ) two <- data.frame( Timestamp = seq(from =…
Golem
  • 100
  • 9
0
votes
1 answer

Varying colors in echarts4r pictorials for R

I have a function that runs through a list of data frames, each one making into it's own infographic comparing male to female risk rates on various diseases. The display we are looking for is for example, if we have a risk rate of 3.5 females to…
0
votes
1 answer

echarts4r won't render in Quarto

I am having trouble rendering an echart for object. I've checked the documentation and numerous tutorials but for some reason I can't render an echart4r chart in html quarto file -- Am I missing something? I receive the below error when rendering in…
alejandro_hagan
  • 843
  • 2
  • 13
0
votes
0 answers

echarts4r trigger action without using a button

Instead of using a button to trigger and action in echarts4r, I'd like to trigger an action using a reactive. I was thinking of creating an invisible button and programmatically having it clicked, but this seems like an extremely inelegant…
Vlad
  • 3,058
  • 4
  • 25
  • 53
0
votes
0 answers

R: how to facet and color graph with echarts4r

I would like to create a graph with the package echarts4r, with the following data: group_size <- 20 n_groups <- 13 df <- data.frame("day" = rep(1:group_size, times=n_groups), "temperature" = runif(group_size * n_groups, 10, 40), …
Felipe
  • 719
  • 8
  • 20
0
votes
0 answers

How to remove margin in echarts4r map

In this post, it's mentioned that we can use e_grid to make the charts to fill all the box. However, this solution doesn't work with e_map object. Any solution for this issue? Tried added e_grid(0,0,0,0) but nothing happens.
tanesya
  • 109
  • 4
0
votes
1 answer

Use proxies in echarts4r to change color of specific bar

I'm reading up on using proxies to add new series to existing charts. For a specific graph, instead of adding brand new series, I'd like to emphasize a certain point on existing one, namely by changing color, let's say to red. I didn't manage to…
mkranj
  • 144
  • 8