michelson / lazy_high_charts

Make highcharts a la ruby , works in rails 5.X / 4.X / 3.X, and other ruby web frameworks
http://www.suipit.com
MIT License
1.05k stars 243 forks source link

[Question] How to specify script tag position on layout #238

Open hdl-helsinki opened 7 years ago

hdl-helsinki commented 7 years ago

Hello,

Highcharts are rendered appending a script tag just before the chart container, like this:

<script>/* highchart data */</script>
<div id="my-highchart"></div>

How can I specify the script tag position on my layout?

My goal is to move all the highcharts scripts to the bottom, before closing the body.

Thank you.