working line chart before c3js