Add component

Allows for adding the component by calling the <code>update</code> method

<code>
 lineGraph.component(componentConfig);
 lineGraph.update();
</code>