@cognite/react-timeseries-chart

[![Build Status](https://github.com/cognitedata/react-timeseries-chart/workflows/Lint%20&%20Build%20&%20Test%20&%20Deploy/badge.svg)](https://github.com/cognitedata/react-timeseries-chart/actions?query=branch:master) [![Storybook](https://cdn.jsdelivr.net

Usage no npm install needed!

<script type="module">
  import cogniteReactTimeseriesChart from 'https://cdn.skypack.dev/@cognite/react-timeseries-chart';
</script>

README

Build Status Storybook

react-timeseries-chart

React timeseries chart implementation based on @cognite/griff-react

How to use

You can add package to your application via yarn:

yarn add @cognite/react-timeseries-chart

Then you can add component to you code importing it:

import React from 'react';
import { TimeseriesChart } from '@cognite/react-timeseries-chart';
import { CogniteClient } from '@cognite/sdk';

const client = new CogniteClient({appId: 'example'});

// ...

const Component = () => {
  return <TimeseriesChart client={client} series={[123]}/>
}

You can check storybook for more examples.

Deployment

To deploy package to npm you should push changes to the master branch with bumped package version (in package.json)