Documentation ¶
Overview ¶
package heatmap provides implementations of drawing rothko heatmaps.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Heatmap ¶
type Heatmap struct {
// contains filtered or unexported fields
}
Heatmap is a struct that draws heatmaps from provided columns.
type Options ¶
type Options struct { // Colors is the slice of colors to map the column data on to. Colors []draw.Color // Canvas to draw on to Canvas draw.Canvas // Map takes a value from the Data in the column, and expects it to be // mapped to a value in [0,1] specifying the color. Map func(float64) float64 }
Options are the things you can specify to control the rendering of a heatmap.
Click to show internal directories.
Click to hide internal directories.