正在显示
1 个修改的文件
包含
31 行增加
和
9 行删除
| @@ -29,17 +29,23 @@ type ChartProperty struct { | @@ -29,17 +29,23 @@ type ChartProperty struct { | ||
| 29 | type Other struct { | 29 | type Other struct { |
| 30 | Quarter *Quarter `json:"quarter,optional,omitempty"` // 四分图 | 30 | Quarter *Quarter `json:"quarter,optional,omitempty"` // 四分图 |
| 31 | Divider *Divider `json:"divider,optional,omitempty"` // 分割线 | 31 | Divider *Divider `json:"divider,optional,omitempty"` // 分割线 |
| 32 | + Rank *Rank `json:"rank,optional,omitempty"` // 排名图 | ||
| 32 | } | 33 | } |
| 33 | type Quarter struct { | 34 | type Quarter struct { |
| 34 | - XAxisLabel string `json:"xAxisLabel"` // x轴标签名 | ||
| 35 | - XAxisFirstLabel string `json:"xAxisFirstLabel"` // 签名1 | ||
| 36 | - XAxisSecondLabel string `json:"xAxisSecondLabel"` // 签名2 | ||
| 37 | - YAxisLabel string `json:"yAxisLabel"` // y轴标签名 | ||
| 38 | - YAxisFirstLabel string `json:"yAxisFirstLabel"` // y标签1 | ||
| 39 | - YAxisSecondLabel string `json:"yAxisSecondLabel"` // y标签2 | ||
| 40 | - Area string `json:"area"` // 图形面积 | ||
| 41 | - AreaColor bool `json:"areaColor"` // 颜色 | ||
| 42 | - SeriesList []QuarterSeries `json:"seriesList"` // 图形系列 | 35 | + XAxisLabel string `json:"xAxisLabel"` // x轴标签名 |
| 36 | + XAxisFirstLabel string `json:"xAxisFirstLabel"` // 签名1 | ||
| 37 | + XAxisSecondLabel string `json:"xAxisSecondLabel"` // 签名2 | ||
| 38 | + XAxisFirstColor string `json:"xAxisFirstColor,optional,omitempty"` // x轴标签1默认颜色 | ||
| 39 | + XAxisSecondColor string `json:"xAxisSecondColor,optional,omitempty"` // x轴标签2默认颜色 | ||
| 40 | + YAxisLabel string `json:"yAxisLabel"` // y轴标签名 | ||
| 41 | + YAxisFirstLabel string `json:"yAxisFirstLabel"` // y标签1 | ||
| 42 | + YAxisSecondLabel string `json:"yAxisSecondLabel"` // y标签2 | ||
| 43 | + YAxisFirstColor string `json:"yAxisFirstColor,optional,omitempty"` // y轴标签1默认颜色 | ||
| 44 | + YAxisSecondColor string `json:"yAxisSecondColor,optional,omitempty"` // y轴标签2默认颜色 | ||
| 45 | + Area string `json:"area"` // 图形面积 | ||
| 46 | + AreaColor bool `json:"areaColor"` // 颜色 | ||
| 47 | + SeriesList []QuarterSeries `json:"seriesList"` // 图形系列 | ||
| 48 | + TableSwitch bool `json:"tableSwitch"` // 是否展示记录型表格 | ||
| 43 | } | 49 | } |
| 44 | 50 | ||
| 45 | type QuarterSeries struct { | 51 | type QuarterSeries struct { |
| @@ -52,6 +58,22 @@ type Divider struct { | @@ -52,6 +58,22 @@ type Divider struct { | ||
| 52 | Text string `json:"text"` // 组件文本内容 | 58 | Text string `json:"text"` // 组件文本内容 |
| 53 | } | 59 | } |
| 54 | 60 | ||
| 61 | +type Rank struct { | ||
| 62 | + FirstLine *[]RankLine `json:"firstLine,optional,omitempty"` // 第一名设置 | ||
| 63 | + SecondLine *[]RankLine `json:"secondLine,optional,omitempty"` // 第二名设置 | ||
| 64 | + SortBySwitch bool `json:"sortBySwitch,optional,omitempty"` // 排序开关 | ||
| 65 | + SortBySeries string `json:"sortBySeries,optional,omitempty"` // 排序依据 | ||
| 66 | + SortByArrow int `json:"sortByArrow,optional,omitempty"` // 排序方向 1-降序 2-升序 | ||
| 67 | +} | ||
| 68 | + | ||
| 69 | +type RankLine struct { | ||
| 70 | + SeriesValue string `json:"seriesValue"` // 排名图序列值 | ||
| 71 | + LabelSwitch bool `json:"labelSwitch"` // 标签开关 | ||
| 72 | + Label string `json:"label"` // 标签 | ||
| 73 | + ArrowSwitch bool `json:"arrowSwitch"` // 箭头开关 | ||
| 74 | + Unit string `json:"unit"` // 单位 | ||
| 75 | +} | ||
| 76 | + | ||
| 55 | type Title struct { | 77 | type Title struct { |
| 56 | TitleSwitch bool `json:"titleSwitch,optional"` // 组件标题开关 | 78 | TitleSwitch bool `json:"titleSwitch,optional"` // 组件标题开关 |
| 57 | IntroduceSwitch bool `json:"introduceSwitch,optional"` // 组件说明开关 | 79 | IntroduceSwitch bool `json:"introduceSwitch,optional"` // 组件说明开关 |
-
请 注册 或 登录 后发表评论