I can't figure out the dates formatting when using the package 'highcharter'. In the chart below, I want the date to be expressed as 03-04-2022 both in the tooltip and on the axis. The tooltip looks ok even though I can't remove the date in whole letters at the top of it and I also can't change the format of the X axis. I would like the X axis expressed with numbers like '01-2021' for January 2021 and not 'Jan' 2021'.
Here is a code example:
library(highcharter)
library(dplyr)
dataset<-data.frame(Date=as.Date(c('01-01-2021','03-04-2021','01-12-2021'),format='%d-%m-%Y'),
Variable=c(1000,2000,1500))
plot<-hchart(dataset ,'column',hcaes(x = Date, y = Variable)) %>%
hc_xAxis(dateTimeLabelFormats = list(day = '%d-%m-%Y')) %>%
hc_tooltip(pointFormat = "{point.x:%d-%m-%Y} <br> Variable: {point.y}")