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

echarts4r multiple axis on different grids

I would like to get a chart with 2 grids. One with two y axis. a and b on one graph with 2 y axis and c,d,and e on another grid. I tried to number them from 0,1 and 2, but it doesn't work. I would need to add an Y axis as on the picture below…
user3355655
  • 463
  • 3
  • 15
1
vote
1 answer

echarts4r error at plotting barchart's colors

As you can see in the annexed image it seems that there is a problem with the e_visual_map() function from echarts4r. After y = aa the colors stop changing. Is there a way to fix the bar's…
Ian.T
  • 1,016
  • 1
  • 9
  • 19
1
vote
1 answer

Why echarts4r produces an empty plot when the data contain spaces?

The context Let's suppose we have the following two files File: 1.csv labels,quantity foo1,1 foo2,4 foo3,6 File: 2.csv labels,quantity foo with spaces 1,1 foo with spaces 2,4 foo with spaces 3,6 and we want to create a parallel coordinates plot…
rdrg109
  • 265
  • 1
  • 8
1
vote
0 answers

How to plot a horizontal line departing from the second y-axis in echarts4R for a Pareto chart

I am trying to construct a pareto chart with echarts4R. Everything seems to work, however I can't figure out how to plot one horizontal line departing from the second y-axis on the right at the 80% level. Now it draws two horizontal lines departing…
Kensho
  • 43
  • 5
1
vote
1 answer

Echarts4r: Add extra variable to the tooltip for a stacked bar chart when using focus="series"

Please, I need help! I am stuck with the tooltip. I want to add an extra variable beside the value showed in the tooltip but I don't know how to do it. The thing is that I want to use "emphasis = list(focus = "series")" in order to focus on the…
ddl
  • 31
  • 2
1
vote
1 answer

Change annotation text color in echarts4r

I would like to change the color of the Text added with e_text_g() to the echarts4r plot. example library(echarts4r) library(tidyverse) data(cars) cars cars %>% count(speed) %>% e_chart(speed) %>% e_bar(n) %>% e_text_g(style = list(text =…
Ian.T
  • 1,016
  • 1
  • 9
  • 19
1
vote
1 answer

how to Showing counts in echarts4r `e_pie` pie ,charts bar charts in R

I have a column that contains 4 variables which are( Bad , Good , Very Good , Excellent ) I need to count how much they repeats in that column and compare each of them and presint to me in pie chart and bar chart in echarts4r For example : df <-…
1
vote
1 answer

Gauge gradient echarts4r in R

I'm needing to create a gauge graph in r, but I can't make the "axisLine" function in gradient colors. library(echarts4r) gauge_x <- e_charts() %>% e_gauge(800, "Incerteza TC", startAngle = 180, endAngle = 0, min = 0, …
1
vote
2 answers

echarts4r map of New Zealand

I'm trying to create a map of New Zealand in R using the library echarts4r but the map looks tiny and I couldn't figure out how to zoom in or determine lat/long boundaries to make it more visible. Here is my code (adapted from the example in the…
1
vote
1 answer

How to color bar chart & rotate axis label in echarts4r

I have basic df and I'm trying to add different color for each bar. According to e_color doc we need to provide a vector of colors but it doesn't work, I'm getting only one color from the vector. Additionally I'd like to rotate by 45dg x axis label…
awoj
  • 133
  • 1
  • 10
1
vote
1 answer

echarts4r add multiple x with one xAxis label having duplicated values

I want to plot a line chart using echarts4r, and the xAxis's label need to have the duplicated values. My packageVersion of echarts4r is 0.3.2. And my codes as the follows: library(echarts4r) library(magrittr) library(data.table) dt <- data.table( …
oye
  • 11
  • 1
1
vote
0 answers

Adding points to multiple boxplot in echarts4r

I just have a small question. I am trying to plot multiple boxplots on a single chart and I want all the data points used for the box plot to be displayed on the chart. However, I am unable to do so. I tried using the e_scatter function after the…
Varun
  • 11
  • 1
1
vote
1 answer

How I can change the label format on echarts4r bar?

Hi and thanks for reading me I am working on a simple bar chart in Echarts4r and I would like to label the bars with the value, but include commas in large numbers. So far I have not found a solution for this, does anyone have any ideas how I could…
1
vote
2 answers

How to set fixed colors for each value in echarts4r?

I want to plot a pie chart and give each value a fixed color. Give the e_color() function a named list does unfourtunately not work. Any suggestions? library(tibble) library(echarts4r) tibble(class=c("A", "B"), n=c(34,12)) %>% e_charts(class)…
werN
  • 109
  • 7
1
vote
1 answer

Waterfall chart on echarts4r?

Hi and thanks for reading me I'm working with a bar chart on R with the Echarts4r package, but I want to do a waterfall chart and I don't find an option to do a plot like the following on the image: It's possible to do this chart type? The code I'm…