jbkunst / highcharter

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

Highcharter 0.8.2 breaks 'pointPlacement' #677

Closed uvedhe closed 2 years ago

uvedhe commented 3 years ago

I have built a fairly complex Polar chart which works beautifully in highcharter. Since the update however, there's a discrepancy between labels and columns. I managed to narrow down the problem to the use of plotOptions.series.pointPlacement. Here's a simplified example:

highchart() %>% 
            hc_series(list(name="Mean", type="column", 
                           data = list_parse(data.frame(x=c(1,2,3,4), y=c(20,25,17,33)))), 
                      list(name="Labels", type="scatter", 
                           data = list_parse(data.frame(x=c(1,2,3,4), y=c(15,15,15,15), 
                                                        name=c("data1","data2","data3","data4"))), 
                           dataLabels = list(enabled = TRUE, format="{point.name}"), 
                           marker = list(enabled=FALSE))) %>% 
            hc_chart(polar=TRUE) %>%
            hc_plotOptions(series = list(animation=FALSE
                                         ,pointPlacement='between'))

When enabled, the polar chart axes shift slightly such that the first column is pointing north, rather than north-east. However, the columns don't seem to move, only the axes (and strangely the labels as well) seem to shift, while the columns themselves remain in place.

pointPlacement removed:

Rplot01

vs. enabled (labels and axes shift but columns don't):

Rplot02

stale[bot] commented 2 years 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.