choo-chartist

1.0.0 • Public • Published

choo-chartist

A little component for using Chartist with the choo framework!

Usage

const html = require('choo/html')
const chartist = require('choo-chartist')

module.exports = (state, prev, send) => html`
  <main>
    ${ chartist(state.chart.type, state.chart.data, state.chart.options) }
  </main>
`

By the way, the css for Chartist is distributed with Chartist package and could be imported, for example, with sheetify ala:

const sf = require('sheetify')
sf('chartist', { global: true })

Readme

Keywords

Package Sidebar

Install

npm i choo-chartist

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rexmortus