simplified charts code
mofified charts example