Fixed bug where x position of markers is not correct after resizing the chart's width.