add charting functions