0.1.2 • Published 7 years ago

react-chart-adapt v0.1.2

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

react-chart-adapt

react chart adapt

How to use

import { RadialChartAdapt, getEventPosition, getPixelRatio } from 'react-chart-adapt';

position = getEventPosition(event) // Relative position
ratio = getPixelRatio(ctx) // ratio

<RadialChartAdapt />

RadialBarChart Props

{
  onResize : ({ ratio, clientWidth, clientHeight, ratioWidth, ratioHeight }, e) => {
    // handle
  },
  ctx, // canvas
}