package indicator type Plot struct { State string `json:"state"` // vector, stateName Type PlotType `json:"series"` // 绘图类型 线/柱 Props PlotProps `json:"props"` // 绘图属性 Exps []PlotExp `json:"exps"` // 绘图条件表达式 } type PlotExp struct { Exp string `json:"exp"` // 绘图条件表达式 Props PlotProps `json:"props"` // 条件表达式成立时绘图属性 } // 指标绘图 type PlotProps map[string]any // PlotType 序列值绘图类型 type PlotType int32 const ( PlotNone PlotType = iota PlotLine PlotHistogram PlotArea ) // Series 绘图颜色 const ( ColorRed string = "#f23645" ColorGreen string = "#089981" ColorRed2 string = "#f7a9a7" ColorGreen2 string = "#92d2cc" ColorYellow string = "#cdcf36" ColorBlue string = "#556cd6" ColorPurple string = "#e48dce" )