jbkunst / highcharter

R wrapper for highcharts
http://jkunst.com/highcharter/
Other
718 stars 147 forks source link

How to create a opposite xaxis and only label the each boxplot name #732

Closed LuShuYangMing closed 1 year ago

LuShuYangMing commented 2 years ago

I tried this example, but boxplot are all shift to left. dat <- data_to_boxplot(ToothGrowth,len,dose,supp)

highchart() %>% hc_chart(type = "boxplot") %>% hc_add_series_list(dat)%>%hc_colors(c("green","red"))%>%hc_add_theme(hc_theme_ggplot2())%>% hc_xAxis(list(categories = c('Apples', 'Oranges', 'Pears'),opposite='true',min=0,labels=list(style=list(color='#FF0000'))), list(categories = c('2014', '2015', '2014', '2015', '2014', '2015'),labels=list(rotation=-90))) %>% hc_plotOptions(series=list(groupPadding=-0.25,showInLegend=FALSE)) %>% hc_add_series(data=c(0,0,0,0,0,0),showInLegend=F,xAxis=1,startOnTick=TRUE) image

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Feel free to reopen it if you find it necessary.