Update LineChart component to use onCursorChange instead of a custom X scaled calculation after this issue is fixed
Add onCursorChange here following the docs using a set state hook and passing down the x value as a prop to CursorTooltip
Remove the unnecessary scaledX calculation here.