@meistercharts-dev/meistercharts-react
TypeScript icon, indicating that this package has built-in type declarations

0.1.13 • Public • Published

@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

Package Sidebar

Install

npm i @meistercharts-dev/meistercharts-react

Weekly Downloads

1

Version

0.1.13

License

Apache-2.0

Unpacked Size

36.6 kB

Total Files

4

Last publish

Collaborators

  • robert.schelling
  • ce-neckar.it
  • neckarit