Move grid options to the BaseComponent.

Grid options were only defined in the linechart. Move it to the
BaseComponent so that it's accessible elsewhere.