Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/asciimoo/cssplot

Pure CSS charts
https://github.com/asciimoo/cssplot

Last synced: 22 days ago
JSON representation

Pure CSS charts

Lists

README

        

cssplot
=======

Simple, css-only plotting.

## Features

* No javascript required
* Easy-to-use
* Responsive

Check [asciimoo.github.io/cssplot](https://asciimoo.github.io/cssplot) for demo.

## Usage

```html

```

Alternatively `cssplot.base.css` can be used alone with the following modifications:

* Bar chart: use `class="chart-column" style="height: 99.0%"` instead of `data-cp-size="99"`
* Vertical bar chart: use `class="chart-row" style="width: 99.0%"` instead of `data-cp-size="99"`
* Scatter plot: use `class="chart-dot" style="left: 20.0%; bottom: 10.0%"` instead of `data-cp-x="20" data-cp-y="10"`

## Examples

### Column chart

```html



  • 99%

  • 50%

  • 30%

  • 90%

  • 10%

  • 70%

  • 30%

  • 90%



```



### Stacked Column chart

```html




  • 99%



  • 50%

    20%



  • 30%

    15%



  • 90%

    10%



  • 10%

    60%



  • 70%

    25%



  • 30%

    40%



  • 90%




```



### Bar chart

```html



  • 100%

  • 30%

  • 20%

  • 70%

  • 90%



```



### Stacked Bar chart

```html




  • 100%



  • 30%

    30%



  • 20%

    50%



  • 70%

    20%



  • 90%

    10%




```



### Scatter plot

```html



  • a

  • b

  • c

  • d

  • e

  • f

  • h

  • i



```



## Conceptions

- [ ] Pie chart
- [ ] Line chart
- [ ] Axis/scale support
- [ ] Live demo
- [ ] Better build script