|
@@ -28,3 +28,88 @@ type SetDefaultThemeReq struct {
|
|
|
ChartThemeId int `description:"主题id"`
|
|
|
ChartThemeTypeId int `description:"主题类型id"`
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+type ColorsOptions []string
|
|
|
+
|
|
|
+type LegendOptions struct {
|
|
|
+ VerticalAlign string `json:"verticalAlign"`
|
|
|
+ ItemStyle struct {
|
|
|
+ Color string `json:"color"`
|
|
|
+ FontSize int `json:"fontSize"`
|
|
|
+ Cursor string `json:"cursor"`
|
|
|
+ FontWeight string `json:"fontWeight"`
|
|
|
+ TextOverflow string `json:"textOverflow"`
|
|
|
+ } `json:"itemStyle"`
|
|
|
+}
|
|
|
+
|
|
|
+type TitleOptions struct {
|
|
|
+ Align string `json:"align"`
|
|
|
+ Style struct {
|
|
|
+ Color string `json:"color"`
|
|
|
+ FontSize int `json:"fontSize"`
|
|
|
+ } `json:"style"`
|
|
|
+}
|
|
|
+
|
|
|
+type MarkerOptions struct {
|
|
|
+ Style struct {
|
|
|
+ Color string `json:"color"`
|
|
|
+ FontSize int `json:"fontSize"`
|
|
|
+ } `json:"style"`
|
|
|
+}
|
|
|
+
|
|
|
+type AxisOptions struct {
|
|
|
+ Style struct {
|
|
|
+ Color string `json:"color"`
|
|
|
+ FontSize int `json:"fontSize"`
|
|
|
+ } `json:"style"`
|
|
|
+}
|
|
|
+
|
|
|
+type DrawOption struct {
|
|
|
+ PlotBackgroundColor string `json:"plotBackgroundColor"`
|
|
|
+}
|
|
|
+
|
|
|
+type LineOptions struct {
|
|
|
+ DashStyle string `json:"dashStyle"`
|
|
|
+ LineWidth int `json:"lineWidth"`
|
|
|
+ LineType string `json:"lineType"`
|
|
|
+ Radius float64 `json:"radius"`
|
|
|
+}
|
|
|
+
|
|
|
+type OldChartOptions struct {
|
|
|
+ ColorsOptions []string `json:"colorsOptions"`
|
|
|
+ LineOptions LineOptions `json:"lineOptions"`
|
|
|
+ LegendOptions interface{} `json:"legendOptions"`
|
|
|
+ TitleOptions interface{} `json:"titleOptions"`
|
|
|
+ MarkerOptions interface{} `json:"markerOptions"`
|
|
|
+ XAxisOptions interface{} `json:"xAxisOptions"`
|
|
|
+ YAxisOptions interface{} `json:"yAxisOptions"`
|
|
|
+ DrawOption interface{} `json:"drawOption"`
|
|
|
+ LineOptionList []LineStyleOptions `json:"lineOptionList"`
|
|
|
+}
|
|
|
+
|
|
|
+type NewChartOptions struct {
|
|
|
+ OldChartOptions
|
|
|
+ LineOptionList []NewLineOptions `json:"lineOptionList"`
|
|
|
+}
|
|
|
+
|
|
|
+type NewLineOptions struct {
|
|
|
+ LineOptions
|
|
|
+ Color string `json:"color"`
|
|
|
+ DataMark string `json:"dataMark"`
|
|
|
+ MarkType string `json:"markType"`
|
|
|
+ MarkSize int `json:"markSize"`
|
|
|
+ MarkColor string `json:"markColor"`
|
|
|
+}
|
|
|
+
|
|
|
+type LineStyleOptions struct {
|
|
|
+ DashStyle string `json:"dashStyle"`
|
|
|
+ Color string `json:"color"`
|
|
|
+ LineWidth int `json:"lineWidth"`
|
|
|
+ LineType string `json:"lineType"`
|
|
|
+ Radius int `json:"radius"`
|
|
|
+ DataMark string `json:"dataMark"`
|
|
|
+ MarkType string `json:"markType"`
|
|
|
+ MarkSize int `json:"markSize"`
|
|
|
+ MarkColor string `json:"markColor"`
|
|
|
+}
|