x axis always time Y axis from 30~240, refactor and add the configure function to a new class