I was thinking of a way to load dependent js files of modules separately. We can provide another option
modules for the user but that would create problems:
- In web frameworks dependent js files must be loaded in head tag and fetching js files in the head tag would be difficult from that option.
- In IRuby notebook, we can also set options as
plot.chart.options = options, so we’ll be loading dependent js when
show_in_irubywill be called (as we are not getting options in the plot object here) which might create conflicts in display of chart before loading appropriate js files.
So, I thought of including the modules (by the user as a separate parameter) when the plotting_library or dependent_script is set but that would create design problems as it is highcharts specific. Any other idea that we could try?