I am trying to render an image to display it on my highchart graph in shiny app but am unable to do so.
I tried this:
dataLabels = list(
enabled = T,
allowOverlap = T,
style = list(
fontWeight = "italic",
fontSize = 11
),
formatter = JS("
function(){
return(this.renderer.image('https://www.highcharts.com/samples/graphics/sun.png', 160, 30, 30).add()+
'<br>sim API: ' + this.point.sim_api.toFixed(0));
}")
)
I expect that in graph the image should appear but it's not appearing.