___ _ ___ ___ _ | _ (_)__ ___/ __| _ \/_\ | _/ / _/ _ \__ \ _/ _ \ |_| |_\__\___/___/_|/_/ \_\ A PicoSSG tool

Bar Chart 📊

The most minimal bar chart consists of <tbody> inside a <table class="picospa-chart bar">. Any <tr> with a <td> inside will become a bar.

Feature Set

Minimal Bar Chart

Minimal Bar Chart
Ten75
Ten100
Nine90
Eight50
0
25%
50%
75%
100%

This bar chart features already a couple of things:

The complete code looks like this;

<table class="picospa-chart bar" style="--picochart-grid-line: 0.1px solid yellow">
    <caption>Minimal Bar Chart</caption>
    <tbody style="height: 5em;">
        <tr><th>Ten</th><td style="--percent: 75%">75</td></tr>
        <tr><th>Ten</th><td style="--percent: 100%">100</td></tr>
        <tr><th>Nine</th><td style="--percent: 90%">90</td></tr>
        <tr><th>Eight</th><td style="--percent: 50%">50</td></tr>
    </tbody>
    <tfoot>
        <tr><th></th><td>0</td></tr>
        <tr><th></th><td>25%</td></tr>
        <tr><th></th><td>50%</td></tr>
        <tr><th></th><td>75%</td></tr>
        <tr><th></th><td>100%</td></tr>
    </tfoot>
</table>

Full Featured Bar Chart

The bar chart below has:

Full Featured Bar Chart
Ten10
Nine9
Eight8
Seven7
Six6
Five5
Four4
Three3
One1
Two2
0
2.5
5
7.5
10