Thousand Separators in View Data Table Highcharter

Hello, I've managed to add export plots/data option in my highcharter plots using the following code.

library(highcharter)
library(dplyr)

hcoptslang <- getOption("highcharter.lang")
hcoptslang$thousandsSep <- ","
options(
  highcharter.lang = hcoptslang
)

data.frame(
  category = c("A", "B", "C"),
  value = c(1500, 76546, 54579)
) %>% 
  hchart(
    "bar",
    hcaes(
      x = "category",
      y = "value"
    )
  ) %>% 
  hc_exporting(
    enabled = TRUE,
    buttons = list(
      contextButton = list(
        align = 'right'
      )
    ),
    chartOptions = list(
      title = list(
        text = "Test"
      )
    )
  )

But the "View Data Table" in exports option shows raw data. If I want to view the numeric columns with thousand separators, what should I do?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.