🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@sebgroup/green-react-charts

Package Overview
Dependencies
Maintainers
3
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sebgroup/green-react-charts

React charts wrapper built on top of @sebgroup/green-charts.

latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
3
Created
Source

Green React Charts

React Green charting components

Install

yarn add @sebgroup/green-react-charts
npm install -S @sebgroup/green-react-charts

Use

First you need to import the base styles for charts:

@use '~@sebgroup/green-charts/scss';

Then you can start using the Chart react component:

import { Chart, ChartSettings } from '@sebgroup/green-react-charts'

export const MyChart = () => {
  const settings: ChartSettings = {
    title: 'My mixed chart',
    data: [
      {
        title: 'Sales',
        type: 'bar',
        columns: [100, 200, 300, -50],
      },
      {
        title: 'Prognosis',
        type: 'spline',
        columns: [0, 10, 150, 330],
      },
    ],
    categories: ['Jan', 'Feb', 'Mar', 'Apr'],
  }

  return <Chart settings={settings} />
}

FAQs

Package last updated on 08 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts