adjust y axis width

This commit is contained in:
Henry Dollman
2024-08-06 18:50:12 -04:00
parent b958e84572
commit f4332d69d5

View File

@@ -192,7 +192,7 @@ export function useYaxisWidth(chartRef: React.RefObject<HTMLDivElement>) {
if (yAxisElement) {
// console.log('yAxisElement', yAxisElement)
clearInterval(interval)
setYAxisWidth(yAxisElement.getBoundingClientRect().width + 22)
setYAxisWidth(yAxisElement.getBoundingClientRect().width + 24)
}
}, 16)
return () => clearInterval(interval)