A set of Victory Chart components provided as a Comet wrapper
npm install @metrostar/comet-data-vizA set of Victory Chart components provided as a Comet wrapper.
1. Add Comet Data Viz to your project:
``sh`npm
npm i --save @metrostar/comet-data-vizor yarn
yarn add @metrostar/comet-data-viz
2. Add your first Comet Data Viz component:
`tsx
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 },
];
``