Dashboard gadget: bar chart
Description
Background
Bar chart output for the approvals gadget, covering the grouped and stacked variants. Common chart behaviour (configuration model, dimension fields, buckets, granularity, ordering, value list options, hyperlinks, drilldown, visibility) is specified in AP-2309 and applies here; this ticket specifies only the bar type.
Bar type
Chart by is the X axis; the optional Group by is the breakout that splits each bar into series. A single "bar" type; the variant follows from Group by and Stacking:
-
Group by empty: plain bar (one bar per Chart by value). No Group by tab.
-
Group by set, Stacking None: grouped bar (series side by side). Default after setting Group by.
-
Group by set, Stacking Stacked / 100%: stacked bar.
Setting Group by adds a Group by tab; with Group by empty the tab does not exist.
Format tab
-
Without Group by: the Chart by values with color per value (changeable) and Ordering.
-
With Group by: the Chart by values with Ordering only; color moves to the Group by values (Group by tab).
Group by tab (only when Group by is set)
-
Stacking at the top: None (grouped, default), Stacked, 100% Stacked.
-
A list of the Group by values (series), each with color (changeable) and sorting.
Display options (specific to bar)
Chart:
-
Orientation: Vertical or Horizontal (useful for many long value names). Default Vertical.
-
Show values on data points: values above bars/segments. Off by default.
-
Show tooltip on hover.
Axes:
-
X-axis label: default the Chart by name, editable.
-
Y-axis label: default "Approvals", editable.
-
Y-axis range: Auto or manual min/max.
Acceptance criteria
-
Selecting bar reveals Chart by (X axis) and an optional Group by (breakout).
-
Group by empty: plain bar, no Group by tab. Group by set: Group by tab added, default Stacking None (grouped). Stacking Stacked/100% gives a stacked bar.
-
Format without Group by: Chart by values with color and Ordering. Format with Group by: Chart by values with Ordering only, no color.
-
Group by tab (Group by set): Stacking (None default / Stacked / 100%) and a list of the Group by values with color and sorting.
-
Display options: Orientation (Vertical default / Horizontal), Show values on data points (off), Show tooltip on hover; editable X/Y axis labels (defaults Chart by name and "Approvals"), Y-axis range (Auto or manual).
-
All shared behaviour (fields incl. Approver / Current step, buckets, granularity, ordering, value list options, hyperlinks, drilldown, visibility) per AP-2309.
Notes
Depends on AP-2309 (chart foundation).