1.0.14 • Published 5 years ago

react-simple-chart v1.0.14

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

welcome to react-simple-chart

Install

npm install react-simple-chart

or

yarn add react-simple-chart

Usage

import ReactSimpleChart from "react-simple-chart";

const App = () => {
  return (
    <ReactSimpleChart
      x={[
        "jan",
        "feb",
        "mar",
        "apr",
        "may",
        "jun",
        "jul",
        "aug",
        "sep",
        "oct",
        "nov",
        "dec",
      ]}
      datas={[
        {
          label: "sell",
          value: [10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120],
          color: "blue",
        },
        {
          label: "buy",
          value: [120, 110, 100, 90, 80, 70, 60, 50, 40, 30, 20, 10],
          color: "red",
        },
      ]}
      yRange={20} //default 10
    />
  );
};
propstypedefault
xany[]require
datas{ label: string; color: string; value: number[] }require
yRangecustumizing y value range10
1.0.14

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago