> For the complete documentation index, see [llms.txt](https://a-styd.gitbook.io/apexcharts-ruby/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://a-styd.gitbook.io/apexcharts-ruby/options/render-within-a-script-with-type-module.md).

# 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`.

```erb
<%= line_chart series, module: true %>
```
