Refactor line chart scales, close #13