正在显示
3 个修改的文件
包含
78 行增加
和
23 行删除
| @@ -118,24 +118,53 @@ type ChartProperty struct { | @@ -118,24 +118,53 @@ type ChartProperty struct { | ||
| 118 | 118 | ||
| 119 | type Other struct { | 119 | type Other struct { |
| 120 | Quarter *Quarter `json:"quarter,optional,omitempty"` // 四分图 | 120 | Quarter *Quarter `json:"quarter,optional,omitempty"` // 四分图 |
| 121 | + Divider *Divider `json:"divider,optional,omitempty"` // 分割线 | ||
| 122 | + Rank *Rank `json:"rank,optional,omitempty"` // 排名图 | ||
| 121 | } | 123 | } |
| 122 | 124 | ||
| 123 | type Quarter struct { | 125 | type Quarter struct { |
| 124 | - XAxisLabel string `json:"xAxisLabel"` // x轴标签名 | ||
| 125 | - XAxisFirstLabel string `json:"xAxisFirstLabel"` // 签名1 | ||
| 126 | - XAxisSecondLabel string `json:"xAxisSecondLabel"` // 签名2 | ||
| 127 | - YAxisLabel string `json:"yAxisLabel"` // y轴标签名 | ||
| 128 | - YAxisFirstLabel string `json:"yAxisFirstLabel"` // y标签1 | ||
| 129 | - YAxisSecondLabel string `json:"yAxisSecondLabel"` // y标签2 | ||
| 130 | - Area string `json:"area"` // 图形面积 | ||
| 131 | - AreaColor bool `json:"areaColor"` // 颜色 | ||
| 132 | - SeriesList []QuarterSeries `json:"seriesList"` // 图形系列 | 126 | + XAxisLabel string `json:"xAxisLabel"` // x轴标签名 |
| 127 | + XAxisFirstLabel string `json:"xAxisFirstLabel"` // 签名1 | ||
| 128 | + XAxisSecondLabel string `json:"xAxisSecondLabel"` // 签名2 | ||
| 129 | + XAxisFirstColor string `json:"xAxisFirstColor,optional,omitempty"` // x轴标签1默认颜色 | ||
| 130 | + XAxisSecondColor string `json:"xAxisSecondColor,optional,omitempty"` // x轴标签2默认颜色 | ||
| 131 | + YAxisLabel string `json:"yAxisLabel"` // y轴标签名 | ||
| 132 | + YAxisFirstLabel string `json:"yAxisFirstLabel"` // y标签1 | ||
| 133 | + YAxisSecondLabel string `json:"yAxisSecondLabel"` // y标签2 | ||
| 134 | + YAxisFirstColor string `json:"yAxisFirstColor,optional,omitempty"` // y轴标签1默认颜色 | ||
| 135 | + YAxisSecondColor string `json:"yAxisSecondColor,optional,omitempty"` // y轴标签2默认颜色 | ||
| 136 | + Area string `json:"area"` // 图形面积 | ||
| 137 | + AreaColor bool `json:"areaColor"` // 颜色 | ||
| 138 | + SeriesList []QuarterSeries `json:"seriesList"` // 图形系列 | ||
| 139 | + TableSwitch bool `json:"tableSwitch"` // 是否展示记录型表格 | ||
| 133 | } | 140 | } |
| 134 | 141 | ||
| 135 | type QuarterSeries struct { | 142 | type QuarterSeries struct { |
| 136 | SeriesValue string `json:"seriesValue"` | 143 | SeriesValue string `json:"seriesValue"` |
| 137 | } | 144 | } |
| 138 | 145 | ||
| 146 | +type Divider struct { | ||
| 147 | + SelectedIdx string `json:"selectedIdx,optional,omitempty"` // 选择的分割线样式 | ||
| 148 | + TextSwitch bool `json:"textSwitch,optional,omitempty"` // 是否展示组件文本 | ||
| 149 | + Text string `json:"text"` // 组件文本内容 | ||
| 150 | +} | ||
| 151 | + | ||
| 152 | +type Rank struct { | ||
| 153 | + FirstLine []RankLine `json:"firstLine,optional,omitempty"` // 第一名设置 | ||
| 154 | + SecondLine []RankLine `json:"secondLine,optional,omitempty"` // 第二名设置 | ||
| 155 | + SortBySwitch bool `json:"sortBySwitch,optional,omitempty"` // 排序开关 | ||
| 156 | + SortBySeries string `json:"sortBySeries,optional,omitempty"` // 排序依据 | ||
| 157 | + SortByArrow int `json:"sortByArrow,optional,omitempty"` // 排序方向 1-降序 2-升序 | ||
| 158 | +} | ||
| 159 | + | ||
| 160 | +type RankLine struct { | ||
| 161 | + SeriesValue string `json:"seriesValue"` // 排名图序列值 | ||
| 162 | + LabelSwitch bool `json:"labelSwitch"` // 标签开关 | ||
| 163 | + Label string `json:"label"` // 标签 | ||
| 164 | + ArrowSwitch bool `json:"arrowSwitch"` // 箭头开关 | ||
| 165 | + Unit string `json:"unit"` // 单位 | ||
| 166 | +} | ||
| 167 | + | ||
| 139 | type Title struct { | 168 | type Title struct { |
| 140 | TitleSwitch bool `json:"titleSwitch,optional"` // 组件标题开关 | 169 | TitleSwitch bool `json:"titleSwitch,optional"` // 组件标题开关 |
| 141 | IntroduceSwitch bool `json:"introduceSwitch,optional"` // 组件说明开关 | 170 | IntroduceSwitch bool `json:"introduceSwitch,optional"` // 组件说明开关 |
| @@ -59,11 +59,11 @@ type Divider struct { | @@ -59,11 +59,11 @@ type Divider struct { | ||
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | type Rank struct { | 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-升序 | 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 | } | 67 | } |
| 68 | 68 | ||
| 69 | type RankLine struct { | 69 | type RankLine struct { |
| @@ -157,21 +157,47 @@ type ( | @@ -157,21 +157,47 @@ type ( | ||
| 157 | } | 157 | } |
| 158 | Other { | 158 | Other { |
| 159 | Quarter *Quarter `json:"quarter,optional,omitempty"` // 四分图 | 159 | Quarter *Quarter `json:"quarter,optional,omitempty"` // 四分图 |
| 160 | + Divider *Divider `json:"divider,optional,omitempty"` // 分割线 | ||
| 161 | + Rank *Rank `json:"rank,optional,omitempty"` // 排名图 | ||
| 160 | } | 162 | } |
| 161 | Quarter { | 163 | Quarter { |
| 162 | - XAxisLabel string `json:"xAxisLabel"` // x轴标签名 | ||
| 163 | - XAxisFirstLabel string `json:"xAxisFirstLabel"` // 签名1 | ||
| 164 | - XAxisSecondLabel string `json:"xAxisSecondLabel"` // 签名2 | ||
| 165 | - YAxisLabel string `json:"yAxisLabel"` // y轴标签名 | ||
| 166 | - YAxisFirstLabel string `json:"yAxisFirstLabel"` // y标签1 | ||
| 167 | - YAxisSecondLabel string `json:"yAxisSecondLabel"` // y标签2 | ||
| 168 | - Area string `json:"area"` // 图形面积 | ||
| 169 | - AreaColor bool `json:"areaColor"` // 颜色 | ||
| 170 | - SeriesList []QuarterSeries `json:"seriesList"` // 图形系列 | 164 | + XAxisLabel string `json:"xAxisLabel"` // x轴标签名 |
| 165 | + XAxisFirstLabel string `json:"xAxisFirstLabel"` // 签名1 | ||
| 166 | + XAxisSecondLabel string `json:"xAxisSecondLabel"` // 签名2 | ||
| 167 | + XAxisFirstColor string `json:"xAxisFirstColor,optional,omitempty"` // x轴标签1默认颜色 | ||
| 168 | + XAxisSecondColor string `json:"xAxisSecondColor,optional,omitempty"` // x轴标签2默认颜色 | ||
| 169 | + YAxisLabel string `json:"yAxisLabel"` // y轴标签名 | ||
| 170 | + YAxisFirstLabel string `json:"yAxisFirstLabel"` // y标签1 | ||
| 171 | + YAxisSecondLabel string `json:"yAxisSecondLabel"` // y标签2 | ||
| 172 | + YAxisFirstColor string `json:"yAxisFirstColor,optional,omitempty"` // y轴标签1默认颜色 | ||
| 173 | + YAxisSecondColor string `json:"yAxisSecondColor,optional,omitempty"` // y轴标签2默认颜色 | ||
| 174 | + Area string `json:"area"` // 图形面积 | ||
| 175 | + AreaColor bool `json:"areaColor"` // 颜色 | ||
| 176 | + SeriesList []QuarterSeries `json:"seriesList"` // 图形系列 | ||
| 177 | + TableSwitch bool `json:"tableSwitch"` // 是否展示记录型表格 | ||
| 171 | } | 178 | } |
| 172 | QuarterSeries { | 179 | QuarterSeries { |
| 173 | SeriesValue string `json:"seriesValue"` | 180 | SeriesValue string `json:"seriesValue"` |
| 174 | } | 181 | } |
| 182 | + Divider { | ||
| 183 | + SelectedIdx string `json:"selectedIdx,optional,omitempty"` // 选择的分割线样式 | ||
| 184 | + TextSwitch bool `json:"textSwitch,optional,omitempty"` // 是否展示组件文本 | ||
| 185 | + Text string `json:"text"` // 组件文本内容 | ||
| 186 | + } | ||
| 187 | + Rank { | ||
| 188 | + FirstLine []RankLine `json:"firstLine,optional,omitempty"` // 第一名设置 | ||
| 189 | + SecondLine []RankLine `json:"secondLine,optional,omitempty"` // 第二名设置 | ||
| 190 | + SortBySwitch bool `json:"sortBySwitch,optional,omitempty"` // 排序开关 | ||
| 191 | + SortBySeries string `json:"sortBySeries,optional,omitempty"` // 排序依据 | ||
| 192 | + SortByArrow int `json:"sortByArrow,optional,omitempty"` // 排序方向 1-降序 2-升序 | ||
| 193 | + } | ||
| 194 | + RankLine { | ||
| 195 | + SeriesValue string `json:"seriesValue"` // 排名图序列值 | ||
| 196 | + LabelSwitch bool `json:"labelSwitch"` // 标签开关 | ||
| 197 | + Label string `json:"label"` // 标签 | ||
| 198 | + ArrowSwitch bool `json:"arrowSwitch"` // 箭头开关 | ||
| 199 | + Unit string `json:"unit"` // 单位 | ||
| 200 | + } | ||
| 175 | Title { | 201 | Title { |
| 176 | TitleSwitch bool `json:"titleSwitch,optional"` // 组件标题开关 | 202 | TitleSwitch bool `json:"titleSwitch,optional"` // 组件标题开关 |
| 177 | IntroduceSwitch bool `json:"introduceSwitch,optional"` // 组件说明开关 | 203 | IntroduceSwitch bool `json:"introduceSwitch,optional"` // 组件说明开关 |
-
请 注册 或 登录 后发表评论