import FunGauge, { backOutEase } from '@fun-gauge/react'
{ color: '#F44336', min: 0, max: 33 },
{ color: '#FFC107', min: 33, max: 66 },
{ color: '#4CAF50', min: 66, max: 100 },
/** function that maps time animation progress from 0 to 1, defaults to backOutEase */
backgroundArcColor: '#ECECEC',
/** function that takes the canvas width and returns the line width for the gauge */
lineWidthFunc: (width: number) => Math.floor(width * 0.095),
/** function that takes the canvas width and returns ctx.font to be used on the canvas */
fontFunc: (width: number): string => `bold ${Math.floor(width * 0.23)}px arial`,
/** function that takes the current value of the gauge and returns a string to display on the canvas */
renderFunc: (val: number): string => `${Math.round(val)}%`,
/** function that takes the canvas width and returns ctx.font to be used on the canvas */
fontFunc: (width: number): string => `${Math.floor((width * 0.095) / 2)}px arial`,
/** function that takes the current value of the label and returns a string to display on the canvas */
renderFunc: (val: number): string => `${val}`,