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

How to extract y-axis value by group in echarts tooltip formatter

I'd like to reference the y-axis value for each group in the custom formatting function: library(echarts4r) # Example data data <- data.frame( category = c("A", "B", "C", "D", "E"), value1 = c(10, 15, 20, 25, 30), value2 = c(12, 18, 22, 28,…
Giovanni Colitti
  • 1,982
  • 11
  • 24
1
vote
1 answer

echarts4r with tabsetPanel - re-animate when switching back to tab

I want the charts to show the animation every time you click on a tab, not just the first. Here's what I got: library(echarts4r) library(magrittr) ui <- fluidPage( tabsetPanel(id = "tabsetpanel", tabPanel("Panel A", value = "A",…
mkranj
  • 144
  • 8
1
vote
2 answers

How I can show the labels on echarts4r plot but just every 2 or 3 bars?

Hi and thanks for reading me. Im working on a echarts plot in R and I want to show the label of the vars but only in every 2 or 3 bars, because i don't want it to look too saturated with information I haven't found a working argument to e_labels(),…
1
vote
1 answer

echarts4r - Change legend line and symbol independent of line chart

I'm trying to make a line bar to specific criteria. I'd like the lines themselves to be colored black, and the area below the lines will be colored differently. However, I'm having trouble setting up the legend to show what's going on in an…
mkranj
  • 144
  • 8
1
vote
0 answers

Is it possible to create bubble chart using Echarts4R

I'm trying to create a bubble chart that look like this using e_scatter. This is what the data looks like and the state I am able to recreate now data <- data.frame( group = c("Upper", "Upper", "Upper", "Upper", "Upper", "Upper", "Upper",…
Richard
  • 11
  • 3
1
vote
1 answer

Plotting a continuous line from incomplete data in echarts4r

The data I'm trying to visualize has two assessments performed on the same time scale, but at different intervals (i.e. Temperature taken 4 times over 12 hours, pain assessed every hour), as an example: df <- data.frame( Hour = 0:12, Pain =…
1
vote
2 answers

How to change area style with echarts4r::e_area()

I can change the line style and the item style, but I cannot seem to be able to pass arguments to areaStyle (see areaStyle). For example: library(echarts4r) data.frame(x = seq.int(1, 5, 1), y = 10) %>% e_chart(x = x) %>% e_area( …
Giovanni Colitti
  • 1,982
  • 11
  • 24
1
vote
1 answer

Echarts4r - how to right align values in a custom tooltip?

I want to reproduce the default tooltip with some additions. However, when I try to do so, it left-aligns both serie and group names, and I am not sure how to fix it. Some sample data and what I tried to…
Darmist
  • 50
  • 9
1
vote
1 answer

How to have a echarts4r graph that fill all the box - shiny dashboard

When plotting a graph with echarts4r within a box in a shiny Dashboard, the graph doesn't fill the box. It's like there's a margin on the left and right sides of the graph. see my sample code below for illustration…
user3355655
  • 463
  • 3
  • 15
1
vote
1 answer

Problem with echarts4r and polar coord system, why this plot returns me an error?

Hi and thanks for reading me. Im trying to generate a plot with a custome palette color, but im getting an error when I use the polar coord system and I don't know why that's happened. Anyone knows how to fix this problem? Thanks a lot for the…
1
vote
1 answer

how to move chart to the left with echart4r

this is my chart and it has a blank space on the left, and I want to move the chart so the blank space is reduced df_x %>% e_chart(Description) %>% e_bar(max, label =list(show= T , position = "right", formatter = "{b}")) %>% …
1
vote
2 answers

Using e_on() to trigger an event within a dynamically rendered UI

Here's a question for RShiny users. I have developed an application which has multiple routes on rendering UI, through action buttons, dropdowns and graph click events. My goal is to fully modularise the application. The problem I am having with…
1
vote
1 answer

echarts4r mark line with proxy chart

Is it possible to add and remove a mark line using a proxy so that the chart doesn't get fully redrawn? To illustrate what it would look like: library(shiny) library(echarts4r) df <- data.frame( x = 1:100, y = runif(100) ) ui <- fluidPage( …
Vlad
  • 3,058
  • 4
  • 25
  • 53
1
vote
1 answer

Use custom data for bar chart data labels in echarts4r

I have a stacked bar chart and I want to add a value label above each stacked bar. I don't want values for each section of the stack. This yields a value for each section of the stack: library(echarts4r) set.seed(1) d <- data.frame( xaxis =…
Giovanni Colitti
  • 1,982
  • 11
  • 24
1
vote
1 answer

echarts4r ee_arrange not displaying in Shiny

I made a quick example to show the issue. When using the e_arrange function from echarts4r with shiny, the graph is not displayed. Anyone has face this issue ? and perhaps has a solution ? This example is with the function "e_arrange" (not…
user3355655
  • 463
  • 3
  • 15