0.1.3 • Published 4 years ago

react-signals-plot v0.1.3

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

React Signals Plot

This is React Signals Plot component for geophysical data visualization.

The component supports 'on the fly' data compression. That's why you can use it for drawing line charts which contain millions of points. ReactSignalsPlot is an interactive component. You can use a mouse or touch to move and zoom.

Here is an example.

Install

npm i --save react-signals-plot

Example

import React from 'react';
import ReactSignalsPlot from 'react-signals-plot';

const series = {
  data: [
    {
      id: 'EX',
      values: [
        { x: 1, y: 5 },
        { x: 2, y: 10 },
        { x: 3, y: 1 },
        { x: 4, y: 3 },
        { x: 5, y: 7 }
      ]
    },
    {
      id: 'EY',
      values: [
        { x: 1, y: 2 },
        { x: 2, y: 0 },
        { x: 3, y: 5 },
        { x: 4, y: 7 },
        { x: 5, y: 7 }
      ]
    }
  ],
  labels: {
    x: 'X, seconds',
    y: 'Y, volts'
  }
};

class PlotExample extends React.Component {
  render() {
    return (
      <ReactSignalsPlot
        style={ { width: '100%', height: 400 } }
        data={ series.data }
        samplesLimit={ 300 }
        labels={ series.labels }
        interactive={ true }
      />
    );
  }
}

Scripts

  1. npm run build - build component
  2. npm run dev - start webpack-dev-server
  3. npm run test - run unit tests

How to publish

  1. Login: npm login
  2. Setup version in package.json (X.X.X-alpha.XX for non-public versions).
  3. Build component: npm run build
  4. Publish:
  • npm run publish-beta - non-public versions
  • npm publish - public versions
0.1.3

4 years ago

0.1.3-alpha.10

4 years ago

0.1.3-alpha.9

4 years ago

0.1.3-alpha.8

4 years ago

0.1.3-alpha.7

4 years ago

0.1.3-alpha.6

4 years ago

0.1.3-alpha.5

4 years ago

0.1.3-alpha.2

4 years ago

0.1.3-alpha.3

4 years ago

0.1.3-alpha.4

4 years ago

0.1.3-alpha.1

5 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0-alpha.3

6 years ago

0.1.0-alpha.2

6 years ago

0.1.0-alpha.1

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago