Added all chart backend work.

Added chart backend code.