Fixed compile errors. Implemented chart drawing (without any pivotsyet). It works! Hurray!