started charting code