1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-25 13:48:50 +08:00
This commit is contained in:
Hoshea 2020-11-20 20:17:24 +08:00
parent 2ac3bc52a4
commit f5dc3335b3
2 changed files with 7 additions and 3 deletions

View File

@ -47,9 +47,9 @@ type HeatMap struct {
// yLabels are the labels on the Y axis in an increasing order.
yLabels []string
// MinValue and MaxValue are the Min and Max values in the values,
// minValue and maxValue are the Min and Max values in the values,
// which will be used to calculate the color of each cell.
MinValue, MaxValue float64
minValue, maxValue float64
// opts are the provided options.
opts *options
@ -64,8 +64,11 @@ func New(opts ...Option) (*HeatMap, error) {
}
// Values sets the values to be displayed by the HeatMap.
//
// Each value in values has a xLabel and a yLabel, which means
// len(xLabels) == len(values) and len(yLabels) == len(values[i]).
//
// Each call to Values overwrites any previously provided values.
// Provided options override values set when New() was called.
func (hp *HeatMap) Values(xLabels []string, yLabels []string, values [][]float64, opts ...Option) error {
return errors.New("not implemented")

View File

@ -79,7 +79,8 @@ type XDetails struct {
}
// NewXDetails retrieves details about the X axis required to draw it on a canvas
// of the provided area. The yEnd is the point where the Y axis ends.
// of the provided area.
// The yEnd is the point where the Y axis ends.
func NewXDetails(cvsAr image.Rectangle, yEnd image.Point, labels []string, cellWidth int) (*XDetails, error) {
return nil, errors.New("not implemented")
}