Add generator to line-chart