1.1.7 • Published 10 months ago

@metrostar/comet-data-viz v1.1.7

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

Comet Data Viz

A set of Victory Chart components provided as a Comet wrapper.

Getting Started

  1. Add Comet Data Viz to your project:
# npm
npm i --save @metrostar/comet-data-viz
# or yarn
yarn add @metrostar/comet-data-viz
  1. Add your first Comet Data Viz component:
import { BarGraph } from '@metrostar/comet-data-viz';

const chart = {
  title: 'Bar graph',
  width: 400,
  height: 300,
};

const data = [
  { x: 'Cat', y: 2 },
  { x: 'Dog', y: 7 },
  { x: 'Fish', y: 3 },
  { x: 'Snake', y: 1 },
  { x: 'Rabbit', y: 2 },
];

<BarGraph chart={chart} alignment="start" color="#0d7ea2" barRatio={1} data={data} />;
1.1.7

10 months ago

1.1.6

10 months ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago