Updated BarChartExample to reflect new changes in the SDK.