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
30 stars 13 forks source link

Add support for the role attibute #11

Open jpminnovation opened 2 years ago

jpminnovation commented 2 years ago

Would it be possible to support a role attribute for the graphs, so that using CSS, we can customize some of its properties (such as alignment, width, etc ...) ?

Something such as :

class="chartjs"
ggrossetie commented 2 years ago

We could add a default role but it should also be possible to define custom roles using the role attribute:

chart::sample-data.csv[line,engine="chartjs",role="sample,data,line-chart"]
jpminnovation commented 2 years ago

Perfect