Tablechart

for Reveal.js: Appearance

One panel at a time

If a chart is inside a fragment, it builds when that fragment appears. Here, Appearance animates the fragments.

Apple juice
thousands of litres
Last season 251.5
This season 279.6
Orange juice
thousands of litres
Last season 92.2
This season 76.1
Lemon juice
thousands of litres
Last season 248.2
This season 261.6

Just staggered, no fragments

Apple juice
thousands of litres
Last season 251.5
This season 279.6
Orange juice
thousands of litres
Last season 92.2
This season 76.1
Lemon juice
thousands of litres
Last season 248.2
This season 261.6

Markup

Put each figure inside a fragment with an Appearance class. No other settings are needed.

<div class="panels">
  <div class="fragment animate__fadeInUp">
    <figure class="tablechart">…</figure>
  </div>
  <div class="fragment animate__fadeInUp">
    <figure class="tablechart">…</figure>
  </div>
</div>
Reveal.initialize({
  plugins: [ Tablechart, Appearance ]
});