datastorm-open / rAmCharts

API for Amcharts
48 stars 16 forks source link

amchart v4 ? #92

Closed cderv closed 4 years ago

cderv commented 4 years ago

Hi,

First, thanks for this very useful 📦 !

I wonder if there is plan to switch to new amcharts v4

This question is motivated by the wish to create Treemap charts, and zoomable Treemap charts. This type of charts is available only in amcharts V4 https://www.amcharts.com/docs/v4/chart-types/treemap/

TitouanRobert commented 4 years ago

Hi Cderv,

We actually work on it. This new package can be use but it is not documented for the time being.

https://github.com/datastorm-open/rAmCharts4

data = list(list(name = "First",
                            children = list(list(name = "A1" ,value = 100),
                                            list(name = "A2" ,value = 60),
                                            list(name = "A3" ,value = 30)
                            )),
                       list(
                         name = "Second",
                         children = list(list(name = "B1" ,value = 135),
                                         list(name = "B2" ,value = 98),
                                         list(name = "B3" ,value = 56)
                         )),
                       list(
                         name = "Third",
                         children = list(list(name = "C1" ,value = 335),
                                         list(name = "C2" ,value = 148),
                                         list(name = "C3" ,value = 126),
                                         list(name = "C4" ,value = 26)
                         )),
                       list(
                         name = "Fourth",
                         children = list(list(name = "D1" ,value = 415),
                                         list(name = "D2" ,value = 148),
                                         list(name = "D3" ,value = 89),
                                         list(name = "D4" ,value = 64),
                                         list(name = "D4" ,value = 16)
                         )),
                       list(
                         name = "Fifth",
                         children = list(list(name = "E1" ,
                                              children = list(
                                                list(name = "EE1" ,value = 415),
                                                list(name = "EE1" ,value = 256)
                                              )),
                                         list(name = "E2" ,value = 148)
                         ))
)

amTreeMap(data = data,
dataFields =list(
  value = "value",
  name = "name",
  children = "children"))

Best, Titouan

cderv commented 4 years ago

Awesome ! So this is another package ! Thank you.

larryhengl commented 4 years ago

...and a vote for lollipops... https://www.amcharts.com/demos/lollipop-chart/

it looks like there is no api wrapper for that yet.

to include amcharts v4 plots in rAmcharts, is it simply now a matter of adding a proxy function?

thanks for this package!