@codecraftkit/chart

1.0.4 • Public • Published

chart

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save @codecraftkit/chart

Usage

import React, { Component } from 'react'

const Chart = dynamic(
  () => import('@codecraftkit/chart').then((mod) => mod.Chart),
  { ssr: false }
)

const data = [{
    "category": "Lithuania",
    "value": 501.9,
    "marketing": 250
}, {
    "category": "Czech Republic",
    "value": 301.9,
    "marketing": 222,
    "sales": 251
}, {
    "category": "Ireland",
    "value": 201.1,
    "marketing": 170
}, {
    "category": "Germany",
    "value": 165.8,
    "marketing": 122
}, {
    "category": "Australia",
    "value": 139.9,
    "marketing": 99
}];

const ExampleComponent = () => {
    const { Chart } = useInitChart();
  return (
        <BoxContainer>
            Some interesting Text
        </BoxContainer>
    ))
}

License

MIT © CodeCraft

Readme

Keywords

none

Package Sidebar

Install

npm i @codecraftkit/chart

Weekly Downloads

5

Version

1.0.4

License

MIT

Unpacked Size

644 kB

Total Files

139

Last publish

Collaborators

  • cc-dev04
  • development.fino