css-charts
v0.0.6
Published
Custom Element wrapper around charts.css
Readme
css-charts
The charts.css is an appealing, innovative way to display charts
<css-charts>
<table>
<caption> Column Example #4 </caption>
<thead>
<tr>
<th scope="col">Year</th>
<th scope="col">Progress</th>
</tr>
</thead>
<tbody>
<tr itemscope>
<th itemprop=key>2016</th>
<td><data itemprop=value value=20></data></td>
</tr>
<tr itemscope>
<th itemprop=key>2017</th>
<td><data itemprop=value value=40></data></td>
</tr>
<tr itemscope>
<th itemprop=key>2018</th>
<td><data itemprop=value value=60></data></td>
</tr>
<tr itemscope>
<th itemprop=key>2019</th>
<td><data itemprop=value value=80></data></td>
</tr>
<tr itemscope>
<th itemprop=key>2020</th>
<td><data itemprop=value value=100></data></td>
</tr>
</tbody>
</table>
</css-charts>Tech stack
css-charts is built HTML‑first on el-maker
(ElementMaker base + roundabout / templateMaker features) with
assign-gingerly for declarative
DOM wiring. The shadow DOM template lives in root.html and the
feature configuration in el-maker.json (generated from
el-maker.mjs via npm run build-el-maker). The previous
trans-render implementation is preserved under legacy/. See
Chats/Conversion.md for conversion notes and open gaps.
Viewing Demos Locally
- Install git
- Fork/clone this repo
- Install node.js
- Open command window to folder where you cloned this repo
git submodule update --init --recursive
npm install
npm run serve
- Open http://localhost:8000/demo/dev.html in a modern browser (Chrome 146+)
