using canvas draw graph

finish
yelloe to red,fix #3