Skip to content

Commit

Permalink
Add dimension to opt.VisualMap (#273)
Browse files Browse the repository at this point in the history
Co-authored-by: Koy ['kɔɪ] <koy@ko8e24.top>
  • Loading branch information
r2p2 and Koooooo-7 committed Apr 2, 2023
1 parent 7471e8b commit b6c595a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions opts/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,9 @@ type VisualMap struct {
// The label text on both ends, such as ['High', 'Low'].
Text []string `json:"text,omitempty"`

// Specify which dimension should be used to fetch dataValue from series.data, and then map them to visual channel.
Dimension string `json:"dimension,omitempty"`

// Define visual channels that will mapped from dataValues that are in selected range.
InRange *VisualMapInRange `json:"inRange,omitempty"`

Expand Down

0 comments on commit b6c595a

Please sign in to comment.