almost have charting working