1.1.1 • Published 17 days ago

next-chartist v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
17 days ago

⚡React Blazing Fast SVG charts ⚡ (next-chartist)

A continuation of https://github.com/fraserxu/react-chartist. Feel free to push an update

Made with create-react-library

NPM monthly downloads NPM total downloads

Install

npm install --save next-chartist

or in _app or layout.tsx/jsx

<script src="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.js" async />

Usage

<link rel="stylesheet" href="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.css">
import React, { Component } from 'react'

import NextChartist from 'next-chartist'

class Example extends Component {

    var type = "barChart"

    var dataChart = {
      labels: ["Speed"],
      series: [1000]
    }

    var options = {
      high: 2500,
      low: 0,
      reverseData: true,
      distributeSeries: true,
      horizontalBars: true,
      chartPadding: {
        right: 50
      },
      axisY: {
        offset: 125,
        onlyInteger: true
      },
      axisX: {
        onlyInteger: true
      }

  }

  render() {
    return (
      <NextChartist
        className={'ct-octave'}
        data={dataChart}
        options={options}
        type={type}
      />
    )
  }
}

License

MIT © poboisvert

1.1.1

17 days ago

1.1.0

18 days ago

1.0.16

18 days ago

1.0.15

18 days ago

1.0.14

18 days ago

1.0.13

18 days ago

1.0.12

19 days ago

1.0.11

19 days ago

1.0.10

19 days ago

1.0.9

19 days ago

1.0.8

19 days ago

1.0.7

19 days ago

1.0.6

19 days ago

1.0.5

19 days ago

1.0.4

19 days ago

1.0.3

19 days ago

1.0.2

19 days ago

1.0.1

19 days ago

1.0.0

19 days ago