working version of charts