Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highcharter Correlation Matrix - can't move the x axis labels from top to bottom of chart. #822

Open
Aisling-Kinsella opened this issue Aug 19, 2024 · 0 comments

Comments

@Aisling-Kinsella
Copy link

Aisling-Kinsella commented Aug 19, 2024

I've tried opposite = TRUE in the hc_xAxis but it's not doing anything. I want to move the xAxis labels from the top of the chart to display along the bottom. I know I can offset but it's messy and leaves a gap at the top of the chart. Opposite = TRUE does work in the yAxis label. Can't get themes or hc_colorAxis to apply either. Anyone had this before?

  hc <- hchart(cor(tester)) %>% 
    hc_xAxis(opposite = TRUE, reverse = TRUE) %>% 
    hc_yAxis(opposite = TRUE) %>%  
    hc_plotOptions(
         series = list(
               dataLabels = list(
                     enabled = TRUE,
                     formatter = JS("function(){
                        return Highcharts.numberFormat(this.point.value, 2);
                        }")
                 )
           )
     ) %>% 
    hc_add_theme(hc_theme_smpl())
  
  
  return(hc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant