react-chart-adapt
v0.1.2
Published
react chart adapt
Downloads
5
Readme
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
}