StackedBarChart
io.worxbend.tui.widgets.StackedBarChart
final case class StackedBarChart(data: Seq[(String, Seq[Long])], barWidth: Int = ..., barGap: Int = ..., max: Option[Long] = ..., styles: Seq[Style] = ..., labelStyle: Style = ...) extends Widget
Bars stacked from multiple series: each (label, values) column stacks one segment per series.
max pins the top of the scale, the way it does on BarChart and Sparkline. Without it the chart scales to the tallest stack it was handed, which is what makes two of these charts side by side — or the same chart across two frames — silently mean different things: a stack that stays the same size appears to shrink the moment a taller one arrives beside it. Pin both charts to the same ceiling and the heights compare.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Widgetclass Objecttrait Matchableclass Any
Members list
In this article