Skip to content

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

@Aisling-Kinsella

Description

@Aisling-Kinsella

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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions