Added datapoint formatting to Mainwindow