Make data for pivot chart and create the chart

pivot table can handle raw data very well, raw data refers to the data
from the database with column names on the first row.