Documentation
¶
Overview ¶
This package holds all plugin subcommands along with common data types and functions used by all subcommands.
Index ¶
- Constants
- Variables
- func Nuplot() *nu.Command
- func NuplotBar() *nu.Command
- func NuplotBoxPlot() *nu.Command
- func NuplotKline() *nu.Command
- func NuplotLine() *nu.Command
- func NuplotPie() *nu.Command
- func ValueToFloat64(value nu.Value) (float64, error)
- type BarDataList
- type BarDataSeries
- type BoxPlotDataList
- type BoxPlotDataSeries
- type BoxPlotSeriesHelper
- type ChartData
- type Float64Series
- type KlineDataList
- type KlineDataSeries
- type LineDataList
- type LineDataSeries
- type PieDataList
- type PieDataSeries
- type PlotHandlerFunc
Constants ¶
View Source
const DefaultSeries = "Items"
Default name of a series if no other name is given.
View Source
const XAxisSeries = "__x_axis__"
Internal name of the series representing the x axis.
Variables ¶
View Source
var Themes = []string{
"chalk", "essos", "infographic", "macarons", "purple-passion", "roma",
"romantic", "shine", "vintage", "walden", "westeros", "wonderland",
}
List of all availlable themes
Functions ¶
func NuplotBoxPlot ¶
func NuplotKline ¶
func NuplotLine ¶
Types ¶
type BarDataList ¶
type BarDataSeries ¶
type BarDataSeries = map[string]BarDataList
type BoxPlotDataList ¶
type BoxPlotDataList = []opts.BoxPlotData
type BoxPlotDataSeries ¶
type BoxPlotDataSeries = map[string]BoxPlotDataList
type BoxPlotSeriesHelper ¶
type ChartData ¶
type ChartData interface {
float64 | []float64 | opts.LineData | opts.BarData | opts.PieData | opts.BoxPlotData | opts.KlineData
}
Abstract data type so that [getSeries] can be called for all plot types.
type Float64Series ¶
type KlineDataList ¶
type KlineDataSeries ¶
type KlineDataSeries = map[string]KlineDataList
type LineDataList ¶
type LineDataSeries ¶
type LineDataSeries = map[string]LineDataList
type PieDataList ¶
type PieDataSeries ¶
type PieDataSeries = map[string]PieDataList
type PlotHandlerFunc ¶
type PlotHandlerFunc = func(any, *nu.ExecCommand) error
Handler function that implements the output of a specific plot. This type is used in the [handleCommandInput] function.
Click to show internal directories.
Click to hide internal directories.