zwxi 7 months ago
parent
commit
337a8c2805
2 changed files with 6 additions and 6 deletions
  1. 4 4
      models/chart.go
  2. 2 2
      models/data_manage/chart_theme/chart_theme.go

+ 4 - 4
models/chart.go

@@ -702,7 +702,7 @@ type SeasonRightAxis struct {
 	NumFormat     int    `description:"数值格式 1:百分比 2:小数"`
 	IsConnected   int    `description:"是否连接 0不连接 1连接"`
 	LineColor     string `description:"线条颜色"`
-	LineWidth     int    `description:"线条宽度"`
+	LineWidth     float64    `description:"线条宽度"`
 	LineStyle     string `description:"线条样式"`
 	IsShow        bool   `description:"是否显示"`
 	IsAdd         bool   `description:"是否添加"`
@@ -723,7 +723,7 @@ type SamePeriodAverage struct {
 	Year      int    `description:"均线取值范围"`
 	Legend    string `description:"图例名称"`
 	LineType  string `description:"线型"`
-	LineWidth int    `description:"线宽"`
+	LineWidth float64    `description:"线宽"`
 	IsShow    bool   `description:"是否显示"`
 	IsAdd     bool   `description:"是否添加"`
 }
@@ -734,7 +734,7 @@ type SamePeriodAverageResp struct {
 	Year      int                      `description:"均线取值范围"`
 	Legend    string                   `description:"图例名称"`
 	LineType  string                   `description:"线型"`
-	LineWidth int                      `description:"线宽"`
+	LineWidth float64                      `description:"线宽"`
 	IsShow    bool                     `description:"是否显示"`
 	List      []*SamePeriodAverageData `description:"自定义均线列表"`
 	IsAdd     bool                     `description:"是否添加"`
@@ -827,7 +827,7 @@ type MarkersLine struct {
 	Value            string          `json:"value" description:"连线指向的数值,例如'4000'"`
 	FromValue        string          `json:"fromValue" description:"连线的起始点,可以为空"`
 	ToValue          string          `json:"toValue" description:"连线的结束点,可以为空"`
-	LineWidth        int             `json:"lineWidth" description:"连线的宽度"`
+	LineWidth        float64             `json:"lineWidth" description:"连线的宽度"`
 	DashStyle        string          `json:"dashStyle" description:"连线的虚线样式,例如'ShortDashDot'"`
 	Color            string          `json:"color" description:"连线的颜色"`
 	Text             string          `json:"text" description:"连线旁边显示的文本"`

+ 2 - 2
models/data_manage/chart_theme/chart_theme.go

@@ -191,7 +191,7 @@ type DrawOption struct {
 
 type LineOptions struct {
 	DashStyle string  `json:"dashStyle"`
-	LineWidth int     `json:"lineWidth"`
+	LineWidth float64     `json:"lineWidth"`
 	LineType  string  `json:"lineType"`
 	Radius    float64 `json:"radius"`
 }
@@ -225,7 +225,7 @@ type NewLineOptions struct {
 type LineStyleOptions struct {
 	DashStyle string `json:"dashStyle"`
 	Color     string `json:"color"`
-	LineWidth int    `json:"lineWidth"`
+	LineWidth float64    `json:"lineWidth"`
 	LineType  string `json:"lineType"`
 	Radius    int    `json:"radius"`
 	DataMark  string `json:"dataMark"`