separate compile and render charts