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

More Query from same tag