The <luna-bar-graph> component displays data as vertical or horizontal bar charts with support for multi-series and stacking.
Paths
/lunadom/components/bar-graph/bar-graph.js Example
Vertical · Goal Line
Horizontal · Sorted
Grouped Multi-Series
Stacked Percentage
Custom Colors · Rounded
Negative Values
Customization
data - JSON array of data points with label and value(s)direction="vertical" - Direction of bars (vertical, horizontal)height="260" - Height of the chart in pixelsgoal - Goal line valuegoal-label - Label for goal linevalue-labels - Show value labels on barssorted - Sort bars by valuelegend - Show legend for multi-seriesstacked - Stack multi-series barsstacked-percentage - Show stacked bars as percentagesx-label - Label for x-axisy-label - Label for y-axis--luna-bar-graph-bar-color - Bar color--luna-bar-graph-bar-hover-color - Bar hover color--luna-bar-graph-bar-radius - Bar border radius--luna-bar-graph-goal-color - Goal line color--luna-bar-graph-bar-negative-color - Color for negative values