1.0.2 • Published 6 years ago

wellness-dimensions-charts v1.0.2

Weekly downloads
3
License
GPL3
Repository
github
Last release
6 years ago

wellness-dimensions-charts

Some custom useful charts implemented in svg as react components.

Gallery

http://wellness-dimensions-charts-gallery.s3-website.us-east-2.amazonaws.com/

How to use

Import the react components and set props. All the props have defaults.

import { StackedTargetChart } from 'wellness-dimensions-charts'

<StackedTargetChart 
  width={350}
  target={5}
  overflowAreaCount={0}
  overflowStyle={"hidden"}
  categoryCaption={"Aerobic Workouts"}
  timePeriodCaption={"Week of Sept 4, 2019"}
  timestampFormat={"dddd, h:MM tt"}
  stackItems={[{event: "Swimming", timestamp: now()}, {event: "Running", timestamp: now()}]}
  bgColor={"#88aa00"}
  stackItemColor={"#346f4d"} />
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago