Code Monkey home page Code Monkey logo

Comments (2)

hnasko avatar hnasko commented on May 16, 2024 1

Thanks for help. I corrected my script.

from echarts4r.

JohnCoene avatar JohnCoene commented on May 16, 2024

I think you have a mismatch in version.

I think it is caused by changes I made changes in v 0.2.1.9000 that I admittedly should not have. In my defense, it's the dev version and so I test things out. The issue, I guess relates to this entry of the changelog:

Arguments containing . have been replaced by _ for clarity. I.e.: coord.system => coord_system.

Hence, your issues.

Works:

dates <- seq.Date(as.Date("2017-01-01"), as.Date("2018-12-31"), by = "day")
values <- rnorm(length(dates), 20, 6)

year <- data.frame(date = dates, values = values)

year %>% 
  e_charts(date) %>% 
  e_calendar(range = "2018") %>% 
  e_heatmap(values, coord_system = "calendar") %>% # coord_system
  e_visual_map(max = 30)

Doesn't work

year %>% 
  e_charts(date) %>% 
  e_calendar(range = "2018") %>% 
  e_heatmap(values, coord.system = "calendar") %>% # coord.system
  e_visual_map(max = 30)

I'm not sure how you installed the packages on your server but I assume it's taking a more recent version. Perhaps, your container install 0.2.0 from CRAN while you run a local dev version.

I would running the latest CRAN version on both but you can install a specific release from Github if you want.

I hope this helps, I apologies for the changes. Let me know if I can help in any way.

from echarts4r.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.