fix the 3 charting draw functions