create the get CPU occupy rate function,

show the CPU line chart.