Dataset

io.worxbend.tui.widgets.Dataset
final case class Dataset(name: String, points: Seq[(Double, Double)], graphType: GraphType = ..., fillToY: Double = ..., resolution: Option[CanvasResolution] = ..., style: Style = ..., marker: Option[String] = ...)

One plotted series: points in world coordinates, drawn the way graphType says.

fillToY is the baseline the Bar and Area graph types measure from, in the data's own units. It defaults to zero, which is what a count or a rate is measured against; set it when the meaningful floor is elsewhere — a temperature series against 20.0, say — so the filled region shows the departure from that level rather than from an origin the reader does not care about. The other graph types ignore it.

resolution and marker override the chart-wide pair for this one series; None, the default, means "whatever the chart says". That is how a braille line and a cell-resolution scatter share one plot, a difference colour alone cannot make on a monochrome terminal. Series that end up with the same pair are drawn together in one pass; series with different pairs are drawn in separate passes, in the order those pairs first appear in datasets, so where two groups claim the same cell the later one wins. That order is fixed rather than left to a hash, because two runs of the same chart disagreeing about which series is on top would be a frame nobody could pin down.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

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