Graphs, charts & dynamic tables
Using chart js library you can display data you have stored in a csv file as a pie chart, bar graph or doughnut chart.
At this point if you want to display data from a json or yaml file, you would need to convert it into csv first. Else the template will error out.
Once you have a csv file, you display the charts as follows:
Show a pie, doughnut & bar chart at once
Firstly define the data you want to display from the front matter:
| |
Show Table at once
| Section | Status | Author |
|---|---|---|
| project 6 | alpha | weru |
| project 4 | beta | dan |
| project 4 | candidate | dahl |
| project y | abandoned | weru |
| project 1 | alpha | weru |
| project 4 | beta | ryan |
| project 4 | candidate | dan |
| project y | abandoned | weru |
| project 11 | alpha | dahl |
| project 4 | beta | dan |
| project 4 | candidate | dan |
| project A | abandoned | weru |
Firstly define the data you want to display from the front matter:
| |
Show only a pie and a doughnut chart
| |
Show table only
| Theme | Latest Version | Repo Owner |
|---|---|---|
| clarity | V.1 | chipzoller |
| compose | V.1 | weru |
| swift | V.2 | weru |
| newsroom | V.1 | weru |