Details
-
Feature
-
Won't have (this time)
-
Obs Mgt & Controls
-
-
-
2
-
5
-
2.5
-
SP-2359 spike for new widgets in Taranta
-
-
Overdue
-
-
Taranta Team_CREAM
Description
This is the implementation of the widget based on the output produced by the UX spike https://jira.skatelescope.org/browse/SP-2359 (which at the moment is not completed yet).
What we need
A "Barchart widget" that presents numerical values of corresponding categorical variables as vertical or horizontal colored bars. Categories can be clustered (ie each category" is a vector of N sub-categories, with N constant). Values of a cluster can be stacked or shown side by side.
As a reference see what Grafana offers: https://play.grafana.org/d/ktMs4D6Mk/5-bar-charts-and-pie-charts?orgId=1
A user can interact with the chart:
- by selecting/deselecting categories
- by hovering on a bar and displaying its numerical value and categories
- by zooming in/out
Configuration options
One needs to define the sources of the data and where the numbers come from. Sources can be attributes of a set of devices to be selected by name and address matching a pattern, or devices taken from a given explicit list, or devices belonging to a class.
Subcategories can be a spectrum-valued attribute of devices, or a tuple of attributes of a device (like <voltage, current, temperature>).
Numbers to be shown are values of attributes.
One needs to be able to customize how the chart is rendered:
- colors for the categories and sub-categories
- axis scale and labels (eg "time", "# alarms")
- background grid (or only horizontal or only vertical) and labels for the ticks along the axis (for example, the vertical axis can be '# alarms' and its ticks can be (0, 5, 10, 15, 20, 25, 30))
- whether to present absolute values or percentages
- whether to stack or not sub-categories
- whether to display labels for the subcategories
- font size and style and location of the legend
- font size and style for axis labels
- if hovering presents info
- if clicking on label of a subcategory in a legend is allowed
Estimated effort
2 feature points.
The effort estimation assumes that the library underlying many of Taranta charts, plotly, already supports barcharts: https://plotly.com/python/bar-charts/
Attachments
Issue Links
- is informed by
-
SP-2359 spike for new widgets in Taranta
- Done