score:1

Try this approach and let us know if it works now:

library('highcharter')
highchart() %>%
  hc_add_series(
    data = list(5, 4, 3, 5)
  ) %>%
  hc_chart(events = list(load = JS("function() {
      var chart = this; chart.update({
        chart: {
          type: 'line',
          plotBackgroundImage: 'https://www.highcharts.com/samples/graphics/skies.jpg'
        }
      }); 
    }
    ")
  ))

Useful links:

https://api.highcharts.com/highcharts/chart.plotBackgroundImage https://www.highcharts.com/blog/tutorials/working-with-highcharts-javascript-syntax-in-r/?fbclid=IwAR2BQSMAn67QbgwGjWK9MzjvmGEI3S5DABrUWq5ppPR7zxQ56ikXmwho8PQ


Related Query