Clear#
func (state *ChartState) Clear()Clear removes the hover.
API 文档由 Go 源码生成,内容为英文。
type ChartState struct {
// contains filtered or unexported fields
}ChartState is the caller-owned state of one chart: the hovered point and the caches that keep a steady chart from allocating. Keep it as long as the chart lives and pass the same one every paint. A nil state is allowed, and makes the chart format its labels and tooltip afresh each paint.
Clear#func (state *ChartState) Clear()Clear removes the hover.
Hover#func (state *ChartState) Hover(index int)Hover sets the hovered data point; a negative index clears it.
Index#func (state *ChartState) Index() (int, bool)Index is the hovered data point.