reusable timeSeriesChart