MCPcopy
hub / github.com/mum4k/termdash / SeriesCellOpts

Function SeriesCellOpts

widgets/linechart/linechart.go:154–158  ·  view source on GitHub ↗

SeriesCellOpts sets the cell options for this series. Note that the braille canvas has resolution of 2x4 pixels per cell, but each cell can only have one set of cell options set. Meaning that where series share a cell, the last drawn series sets the cell options. Series are drawn in alphabetical ord

(co ...cell.Option)

Source from the content-addressed store, hash-verified

152// share a cell, the last drawn series sets the cell options. Series are drawn
153// in alphabetical order based on their name.
154func SeriesCellOpts(co ...cell.Option) SeriesOption {
155 return seriesOption(func(opts *seriesValues) {
156 opts.seriesCellOpts = co
157 })
158}
159
160// SeriesXLabels is used to provide custom labels for the X axis.
161// The argument maps the positions in the provided series to the desired label.

Callers 7

newDashboardTabFunction · 0.92
animateVisualizeFunction · 0.92
animateExplorerFunction · 0.92
animateTelemetryFunction · 0.92
playLineChartFunction · 0.92
applySparklineBatchFunction · 0.92
TestLineChartDrawsFunction · 0.85

Calls 1

seriesOptionFuncType · 0.85

Tested by 1

TestLineChartDrawsFunction · 0.68