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 Serializable
trait Product
trait Equals
trait Widget
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def render(area: Rect, buffer: Buffer): Unit

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product