Line chart refactor mvc