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
)