Documentation ¶
Overview ¶
Package scatter creates an interactive scatter plot file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct { AnalysisType string Filename string Legend []map[string]string Parameters types.Settings Plots []types.ScatterPlot Settings map[string]interface{} }
Data defines the type and variables required for generating an interactive scatter plot
type PlotRounded ¶
type PlotRounded struct { Labels types.ScatterAxesLabels `json:"labels"` Name string `json:"name"` Points []PointRounded `json:"points"` }
PlotRounded contains data for a scatter plot
type PointRounded ¶
type PointRounded struct { Color string `json:"color"` Label string `json:"label"` X RoundedScatterPoint `json:"x"` Y RoundedScatterPoint `json:"y"` }
PointRounded contains data for a point on a scatter plot
type RoundedScatterPoint ¶
type RoundedScatterPoint float64
RoundedScatterPoint rounds scatter points to a precision of 2
func (RoundedScatterPoint) MarshalJSON ¶
func (r RoundedScatterPoint) MarshalJSON() ([]byte, error)
MarshalJSON rounds scatter points to a precision of 2 when exporting to JSON
Source Files ¶
Click to show internal directories.
Click to hide internal directories.