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

Labels partially or totally hidden in bar chart (echarts4r)

I use the echarts4r package in R. When I run the code below, I get a bar chart where the x-axis labels (countries' names) are partially hidden. The last bar displaying 18000 is for South Africa, but it is completely hidden. Is it possible to make…
0
votes
1 answer

How to get the axis label on the bars in R using echart4r package?

This is what I want I am trying to replicate the chart above (with the labels on the bars) in R using echart4r package. For the axis labels to appear on the bars, I used axisLabel = list(inside = TRUE) inside e_x_axis() as in the code below. But…
0
votes
1 answer

Is it possible to change e_line opacity in echarts4r?

I would like to change the opacity of the line in my plot made with echarts4r. This is what I tried to do library(quantmod) library(echarts4r) getSymbols("GS") #Goldman Sachs GS <- as.data.frame(GS) GS$date <- row.names(GS) GS$level <- 200 GS |> …
Ian.T
  • 1,016
  • 1
  • 9
  • 19
0
votes
0 answers

echarts4r doesn't show anything

I'm trying to plot a 3D contour plot with echarts4r and it's doesn't show anything, even if it doesn't give any error. I've tried to use also plot_ly and I had the same result. Here is the picture of the result with echarts. And here is the code i…
Luca
  • 49
  • 6
0
votes
1 answer

Is there a way to build a 2D map using echarts4r with a custom region/area dataset?

I really like echarts4r and I would like to be able to use it for building a 2D choropleth map. My issue is that it looks like echarts4r can only do this with a predefined set of regions/areas. In particular, I would like to map the UK split by…
0
votes
1 answer

Add multiple e_mark_line in echarts4r using a loop or map or lapply

I would like to set multiple e_mark_line using lapply or pmap. library(tidyverse) library(lubridate) library(echarts4r) set.seed(1) size = 24 * 20 time <- seq( from = as.POSIXct("2021-01-01 00:00", tz = "UTC"), length.out = size, by…
zaja9031
  • 27
  • 5
0
votes
1 answer

how I can align to the left on shiny?

Hi and thanks for reading me I am working on a shiny bar chart and I would like it to display from the left without a space in between, that is, I would like to remove the following space and for the chart to start from there: Is there a way to do…
0
votes
1 answer

Resize html widget in Shiny? (echarts4r)

good afternoon/night. Im trying to create a shiny app with leaflet and echarts4r, but i would like to know if it is possible to change the size of the histogram that appears to the side. Anyone have any ideas on how I could do it? Here is a…
0
votes
1 answer

Render echart from uploading a csv file

I'm trying to make an app that will render you a graph from uploading a csv file to it, in which you can choose the variables to graph. The truth is I don't know what I'm doing wrong, since the app doesn't render the graph. Any ideas or…
0
votes
1 answer

How to manage column which doesn't exist while generating bar graph using pipe operator?

I have many dataframe school_skill_score_ff which has three column 'Skill_full_form', '2020', '2021'. I'm trying to create a pipeline for bar graph. My code is here. school_bar<-school_skill_score_ff%>% …
0
votes
1 answer

geom_label() equivalent in {echarts4r}

Issue I'm trying to produce a visualisation using {echarts4r} that involves plotting points with labels displayed on the chart itself, where the labels are unrelated to the position of the points. This sounds like it should be simple, but so far I…
wurli
  • 2,314
  • 10
  • 17
0
votes
1 answer

Remove value display from eCharts4R gauge chart

Given this example library(echarts4r) library(magrittr) gauge_out <- e_charts() %>% e_gauge(41,"Percent") print(gauge_out) You get this gauge chart I'd like to NOT have the number "41" displayed at the bottom. From looking through the eCharts…
jerH
  • 1,085
  • 1
  • 12
  • 30
0
votes
1 answer

Gauge colors using echarts4r

Based on the example I found here I thought the code below would produce a gauge with three color ranges: 0 < x <= 1.5: green 1.5 < x <= 3: yellow x > 3: red Here's what I have: library(echarts4r) library(magrittr) CA_gauge <- e_charts() %>% …
jerH
  • 1,085
  • 1
  • 12
  • 30
-1
votes
1 answer

How to add trend line with slope and intercept in echarts4r R plot

How to add a trendline in echarts4r line plots. In the example df , i can add a red trendline in ggplot2. How can i do the same with echart4r ? . Sample data and code are below. #…
Lily Nature
  • 613
  • 7
  • 18
1 2 3 4 5 6
7