Please help to convert table to chart bar #75
Answered
by
ramiy
cryptobandteam
asked this question in
Q&A
-
Hello. I am glad to find chartscss as a simplest way to convert table to chart. I added chartscss css to my site and inserted table but my table did not convert to chart. Please help to fix this or explain what I am doing wrong
|
Beta Was this translation helpful? Give feedback.
Answered by
ramiy
Jan 30, 2023
Replies: 1 comment 2 replies
-
Use this table: <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/charts.css/dist/charts.min.css">
<table class="charts-css bar show-labels">
<tbody>
<tr>
<th scope="row" scope="row">01.02.2022</th>
<td style="--size: calc( 300 / 1530 )">$300</td>
</tr>
<tr>
<th scope="row" scope="row">06.02.2022</th>
<td style="--size: calc( 540 / 1530 )">$540</td>
</tr>
<tr>
<th scope="row">21.02.2022</th>
<td style="--size: calc( 780 / 1530 )">$780</td>
</tr>
<tr>
<th scope="row">02.03.2022</th>
<td style="--size: calc( 690 / 1530 )">$690</td>
</tr>
<tr>
<th scope="row">07.03.2022</th>
<td style="--size: calc( 690 / 1530 )">$690</td>
</tr>
<tr>
<th scope="row">26.03.2022</th>
<td style="--size: calc( 930 / 1530 )">$930</td>
</tr>
<tr>
<th scope="row">10.04.2022</th>
<td style="--size: calc( 1170 / 1530 )">$1 170</td>
</tr>
<tr>
<th scope="row">19.07.2022</th>
<td style="--size: calc( 1170 / 1530 )">$1 170</td>
</tr>
<tr>
<th scope="row">20.08.2022</th>
<td style="--size: calc( 1080 / 1530 )">$1 080</td>
</tr>
<tr>
<th scope="row">10.09.2022</th>
<td style="--size: calc( 1080 / 1530 )">$1 080</td>
</tr>
<tr>
<th scope="row">15.09.2022</th>
<td style="--size: calc( 1320 / 1530 )">$1 320</td>
</tr>
<tr>
<th scope="row">29.10.2022</th>
<td style="--size: calc( 1230 / 1530 )">$1 230</td>
</tr>
<tr>
<th scope="row">08.11.2022</th>
<td style="--size: calc( 1470 / 1530 )">$1 470</td>
</tr>
<tr>
<th scope="row">14.12.2022</th>
<td style="--size: calc( 1380 / 1530 )">$1 380</td>
</tr>
<tr>
<th scope="row">19.12.2022</th>
<td style="--size: calc( 1290 / 1530 )">$1 290</td>
</tr>
<tr>
<th scope="row">11.01.2023</th>
<td style="--size: calc( 1530 / 1530 )">$1 530</td>
</tr>
</tbody>
</table> |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ramiy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@cryptobandteam
Use this table: