Support custom annotation

This commit is contained in:
Vijay Karthik 2025-02-18 14:56:15 -08:00
parent d25a827706
commit 406d35c6a6
3 changed files with 49 additions and 12 deletions

View file

@ -91,12 +91,20 @@ const (
SeriesMarkDataTypeMax = "max"
SeriesMarkDataTypeMin = "min"
SeriesMarkDataTypeAverage = "average"
SeriesMarkDataTypeCustom = "custom"
)
type SeriesMarkData struct {
// The mark data type, it can be "max", "min", "average".
// The "average" is only for mark line
Type string
// Custom options.
XAxisIndex int
CustomYVal float64
FillColor *Color
StrokeColor *Color
FontColor *Color
}
type SeriesMarkPoint struct {
// The width of symbol, default value is 30