Documentation ¶
Index ¶
- func TimeTicker(packets []packet.RocketPacket) []chart.Tick
- func WithFixedRange(min, max float64) func(*Graph)
- func WithLegend(styles ...chart.Style) func(*Graph)
- func WithTitle(title string) func(*Graph)
- func WithXAxis(axisName string) func(*Graph)
- func WithXTicker(ticker Ticker) func(*Graph)
- func WithYAxis(axisName string) func(*Graph)
- func WithYTicker(ticker Ticker) func(*Graph)
- type Graph
- type MultiSeriesAdapter
- type Renderer
- type SimpleAdapter
- type Ticker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TimeTicker ¶
func TimeTicker(packets []packet.RocketPacket) []chart.Tick
func WithFixedRange ¶
func WithLegend ¶
func WithLegend(styles ...chart.Style) func(*Graph)
func WithXTicker ¶
func WithYTicker ¶
Types ¶
type Graph ¶
type MultiSeriesAdapter ¶
type MultiSeriesAdapter func(packet.RocketPacket) (x float64, yValues []float64)
type Renderer ¶
type Renderer func([]packet.RocketPacket) []chart.Series
func NewMultiSeriesRenderer ¶
func NewMultiSeriesRenderer(adapter MultiSeriesAdapter, names ...string) Renderer
func NewSimpleRenderer ¶
func NewSimpleRenderer(adapter SimpleAdapter) Renderer
type SimpleAdapter ¶
type SimpleAdapter func(packet.RocketPacket) (float64, float64)
type Ticker ¶
type Ticker func([]packet.RocketPacket) []chart.Tick
Click to show internal directories.
Click to hide internal directories.