Render within a script with type module

The charts are rendered by inserting a block in the HTML. In order to generate this with type="module" use the option module: true.

<%= line_chart series, module: true %>

Last updated