1.0.8 • Published 5 years ago

line-charts-react v1.0.8

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

line-charts-react

A simple React js component to create various line charts

Version 1.0.0 released! YAY!

To get it running you need to pass at least those two props:

PropType
setsArray of arrays of real numbers
timesArray of arrays of timestamps

IMPORTANT You will need to use the bootstrap CSS to make it look pretty so include this (with the appropriate version) in your HTML file:

<link crossorigin="anonymous" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
      integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" rel="stylesheet">

Example:

<div className="card">
    <div className="card-body">
        <LineChart
            sets={[
                [1444, 350, 200],
                [1320, 1000, 400]
            ]}
            times={[
                ["2019-08-12T00:44:20.963Z", "2019-08-13T00:44:20.963Z",
                    "2019-08-14T00:44:20.963Z"].map((e) => new Date(e)),
                ["2019-08-11T00:44:20.963Z", "2019-08-12T00:44:20.963Z",
                    "2019-08-13T00:44:20.963Z"].map((e) => new Date(e)),
            ]}
        />
    </div>
</div>

Note that for every element of the set there must be a corresponding timestamp.

More details will be coming soon (when I get more free time :))

npm.io

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

0.0.10-a

5 years ago

0.0.9-a

5 years ago

0.0.8-a

5 years ago

0.0.7-a

5 years ago

0.0.6-a

5 years ago

0.0.5-a

5 years ago

0.0.4-a

5 years ago

0.0.3-a

5 years ago

0.0.2-a

5 years ago

0.0.1

5 years ago