fix data generation, line chart, pie chart