HighlightingModel hoverModel, SelectionModel selectionModel) {
// behaviors: how the view reacts to user interactions
CompositeVisualItemBehavior barChartBehaviors = new CompositeVisualItemBehavior();
barChartBehaviors.add(new HighlightingVisualItemBehavior(hoverModel));
barChartBehaviors.add(new SwitchSelectionOnClickVisualItemBehavior(
selectionModel, commandManager));
barChartBehaviors.add(new PopupWithHighlightingVisualItemBehavior(
new SimpleDetailsWidgetHelper(),
new DefaultPopupManagerFactory(new DefaultPopupFactory()),
hoverModel));