Sets number of components in the internal chart data.
This method is called to set number of components in the internal chart data.
Usually you don't need to call this method explicitly.