Closed diegocgaona closed 8 years ago
Hi! Can you put dput(adw_adg_summar)
please? :)
I think you want:
highcharter() %>%
hc_add_series(data = adw_adg_summar[,2:9], colorByPoint = TRUE) %>%
hc_xAxis(categories = names(adw_adg_summar[,2:9]))
You're adding all the values as separates series, so every value is 0-index in the first category names(adw_adg_summar[,2:9])[1]
. Hope it helps, tell me if this ok.
But all the values will be in the same axis. If you send me the data we can do what you want but the code will be not so simple/short ;).
Hi @jbkunst,
First, thanks for your quick help.
Yeah, the problem in this case is the second axis, I need it, I want to show this data in one graph only, but the data for some bars are very different.
My data is really that on the issue (the first column can be ignored, the others are numeric), is only a summary from a Google Adwords Campaign. If you want in some specific format for the data, I send to you.
Hi @diegocgaona ,
I made some tries but didt work. I think the issue is combine column with two axis. In the scatter/line type the data show where I want, but when I change the type to column the axis is a little out of place.
Hi @jbkunst ,
Many thanks! I would never thought to make this way.
Worked fine, I liked very much the option 2 for my desires, this way I can select to show one or another type of data, and only one y axis shows.
One off topic question, can I put a suffix or prefix by series?
Like this: http://api.highcharts.com/highcharts#series
Thanks very much!
Yes, you can :D http://jsfiddle.net/aXvcw/. Not so clean, but it's possible.
Hi,
I'm trying to put labels on my hchart graph, but the
hc_xAxis(categories = names(adw_adg_summar[,2:9]))
is not working. I see only the first name of the column, and not all column names.My data is:
My result is:
My code:
I'm using the highCharter 0.4.0.9999
I'm doing something wrong?
Thanks