asciidoctor / asciidoctor-chart

A set of Asciidoctor extensions that add a chart block and block macro to AsciiDoc for including charts in your AsciiDoc document.
Other
29 stars 13 forks source link

Issue : Can only have one chartjs graph per page #12

Closed jpminnovation closed 2 years ago

jpminnovation commented 2 years ago

When using the chartjs engine, only the last graph is displayed on the generated HTML. This does not happen for the c3js and the chartist engines.

To reproduce the issue :

== An example

=== chart.js

chart::sample-data.csv[line,engine="chartjs"]

[WARNING]
.Nothing above
====
The graph above is not displayed, as only the last of the chart.js graph is displayed
====

=== chart.js number 2

chart::sample-data.csv[line,engine="chartjs"]

Here the graph is displayed as expected  

The result :

image

This issue is obtained using the following Ruby gems :