DataProperty propAmount = dataSet.getPropertyById("amount");
assertThat(propDept).isNotNull();
assertThat(propAmount).isNotNull();
// Init a bar chart displayer
BarChartDisplayerType barChartDisplayerType = (BarChartDisplayerType) dataDisplayerManager.getDisplayerTypeByUid(BarChartDisplayerType.UID);
BarChartDisplayer barChartDisplayer = (BarChartDisplayer) barChartDisplayerType.createDataDisplayer();
barChartDisplayer.setDataProvider(dataSet.getDataProvider());
barChartDisplayer.setDomainProperty(propDept);
barChartDisplayer.setRangeProperty(propAmount);
// Set the scalar function to apply for the calculations of the chart values.