fix hover positions so that they are relative to the chart canvas