Implemented chart rendering.