Documentation ¶
Overview ¶
Package heatmap draws a svg heatmap.
Index ¶
- func CreateFillGradient(svg *strings.Builder, data Legend, gradient []color.Space)
- func CreateLegend(data Legend)
- func CreateLegendHeader(svg *strings.Builder)
- func CreateLegendTitle(svg *strings.Builder, title string)
- func WriteElement(file afero.File) func(str string)
- func WriteHeader(h *Heatmap, writeString func(string))
- func WriteLabels(h *Heatmap, writeString func(string))
- func WriteMarkup(h *Heatmap, writeString func(string))
- type Heatmap
- type Legend
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFillGradient ¶
CreateFillGradient writes a gradient with the fill color.
func CreateLegendHeader ¶
CreateLegendHeader writes the opening svg tag.
func CreateLegendTitle ¶
CreateLegendTitle writes the legend title.
func WriteElement ¶
WriteElement writes an svg element/tag to a file.
func WriteHeader ¶
WriteHeader writes an opening svg tag with dimensions.
func WriteLabels ¶
WriteLabels writes column and row labels.
func WriteMarkup ¶
WriteMarkup writes annotations, markers and column/row headings.
Types ¶
type Heatmap ¶
type Heatmap struct { AbundanceCap float64 Annotations types.Annotations CellSize int Columns []string FillColor string FontSize int Invert bool LeftMargin int Markers types.Markers Matrix [][]float64 MinAbundance float64 NumColors int PlotHeight int PlotWidth int Rows []string SvgHeight int SvgWidth int TopMargin int XLabel string YLabel string }
Heatmap properties.
Click to show internal directories.
Click to hide internal directories.