Code Monkey home page Code Monkey logo

Comments (12)

brucefeiwang avatar brucefeiwang commented on May 22, 2024 1

Thanks

from echarts4r.

JohnCoene avatar JohnCoene commented on May 22, 2024

Well, you technically can but the least I can say is that it's easy let alone evident. I'll see if I can simplify the API.

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

df <- data.frame(date18 = dates18, date17 = dates17, values = values)

df %>% 
    e_charts(date18) %>% 
    e_calendar(range = "2018") %>% 
    e_heatmap(values, coord.system = "calendar", calendarIndex = 0, name = "2018") %>% 
    e_data(df, date17) %>% 
    e_calendar(range = "2017", top = 300) %>% 
    e_heatmap(values, coord.system = "calendar", calendarIndex = 1, name = "2017") %>%
    e_visual_map(max = 30) 

from echarts4r.

brucefeiwang avatar brucefeiwang commented on May 22, 2024

cool. thanks for giving example.

from echarts4r.

brucefeiwang avatar brucefeiwang commented on May 22, 2024

Hi . it looks like . for function e_heatmap(), parameter name, is not getting used in the graph.

from echarts4r.

JohnCoene avatar JohnCoene commented on May 22, 2024

I don't understand the problem, do you have an example?

from echarts4r.

brucefeiwang avatar brucefeiwang commented on May 22, 2024

in this code line : e_heatmap(values, coord.system = "calendar", calendarIndex = 0, name = "2018").
Parameter name="2018" dose not work , things won't change if you have name= 'something else'

from echarts4r.

JohnCoene avatar JohnCoene commented on May 22, 2024

The argument name is indeed not necessary, in the package this argument is often used for the legend names.

For instance:

cars %>% 
    e_chart(dist) %>% 
    e_scatter(speed, name ="Vehicle Speed")

The argument name exists but is not used per se. Perhaps you are after e_title?

e_charts() %>% 
    e_calendar(range = "2017") %>% 
    e_title("Chart title", "subtitle")

from echarts4r.

brucefeiwang avatar brucefeiwang commented on May 22, 2024

I see. Thanks.

from echarts4r.

brucefeiwang avatar brucefeiwang commented on May 22, 2024

One more thing, How to make this calendar heatmap adjust its size according to web page size, dynamically.

from echarts4r.

JohnCoene avatar JohnCoene commented on May 22, 2024

The calendar is, as far as I know, the only non-responsive element of echarts

from echarts4r.

JohnCoene avatar JohnCoene commented on May 22, 2024

@brucefeiwang Could you take a look at #34 I have pushed a solution to this.

from echarts4r.

jrjasis avatar jrjasis commented on May 22, 2024

taking your example above, how would you go about putting an animation on top of the calendar, with where the year changes?

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.