belle-chart

0.2.2 • Public • Published

Belle Chart

A standard normal curve chart for React

Standard Normal Curve Chart

Usage

import BelleChart from 'belle-chart'

function Main(props) {
  return <BelleChart data={props.data} />
}

Props

type DataItem = {
  value: number
  label?: string
}

// Data Prop Should match Chart.js dataset settings (as of Chart.js version ~2.8)
// The Data Array is the only exception
// https://www.chartjs.org/docs/master/general/data-structures.html
type Dataset = {
  data: Array<DataItem>
}

// Optional props

// Chart.js chart options (as of Chart.js version ~2.8)
// https://www.chartjs.org/docs/latest/general/options.html
type Options = ChartOptions

// Do we want to scatter the points along the y axis?
type xScatter = boolean

Package Sidebar

Install

npm i belle-chart

Weekly Downloads

0

Version

0.2.2

License

MIT

Unpacked Size

6 MB

Total Files

13

Last publish

Collaborators

  • lynellf