shift all the history chart stuff to the chart factory