# WidthInBars
Gets chart width in bars.
```
int WidthInBars() const
Return Value
Width in chart bars of the chart assigned to the class instance. If there is no chart assigned, it returns 0.