react chart adapt
import { RadialChartAdapt, getEventPosition, getPixelRatio } from 'react-chart-adapt';
position = getEventPosition(event) // Relative position
ratio = getPixelRatio(ctx) // ratio
<RadialChartAdapt />
{
onResize : ({ ratio, clientWidth, clientHeight, ratioWidth, ratioHeight }, e) => {
// handle
},
ctx, // canvas
}