Package org.jboss.hal.ballroom.chart
Class GroupedBar
- java.lang.Object
-
- org.jboss.hal.ballroom.chart.GroupedBar
-
- All Implemented Interfaces:
org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>,Attachable
public class GroupedBar extends Object implements org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>, Attachable
Grouped bar chart to visualize quantitative data. Can be rendered horizontal or vertical. Values can be stacked.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroupedBar.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattach()voiddetach()elemental2.dom.HTMLElementelement()voidresize(int width)voidupdate(com.google.common.collect.ArrayListMultimap<String,Long> data)Use this method if you created the bar chart with multiple categories and provide a value for each category in the multimap.voidupdate(Map<String,Long> data)Use this method if you created the bar chart with a single category.
-
-
-
Method Detail
-
attach
public void attach()
- Specified by:
attachin interfaceAttachable
-
detach
public void detach()
- Specified by:
detachin interfaceAttachable
-
element
public elemental2.dom.HTMLElement element()
- Specified by:
elementin interfaceorg.jboss.elemento.IsElement<elemental2.dom.HTMLElement>
-
update
public void update(Map<String,Long> data)
Use this method if you created the bar chart with a single category.
-
update
public void update(com.google.common.collect.ArrayListMultimap<String,Long> data)
Use this method if you created the bar chart with multiple categories and provide a value for each category in the multimap.
-
resize
public void resize(int width)
-
-