1.39.0-SNAPSHOT-cd883f0c23c • Published 4 months ago

@meistercharts/meistercharts-react v1.39.0-SNAPSHOT-cd883f0c23c

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

@meistercharts/meistercharts-react

Wrapper around the MeisterCharts library for React.

Installation

The package can be installed from npmjs(TODO: link package).

npm

npm install @meistercharts/meistercharts-react

yarn

yarn add @meistercharts/meistercharts-react

pnpm

pnpm add  @meistercharts/meistercharts-react

Usage

To create a Timeline Chart with sample data, insert this code in a React Component.

import { TimeLineChart, useTimeLineChartController } from "@meistercharts/meistercharts-react"

export function Chart() {
   const controller = useTimeLineChartController();

   useEffect(() => {
      controller.setUpDemo();
      controller.play();
   })

   return <TimeLineChart controller={controller} />
}

This will render the following chart:

TODO: insert screenshot