diff --git a/go.mod b/go.mod index 3476d74e5a..e4bbce9ed8 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/containerd/continuity v0.4.5 github.com/containerd/platforms v1.0.0-rc.1 github.com/docker/cli v28.5.1+incompatible - github.com/go-echarts/go-echarts/v2 v2.6.3 + github.com/go-echarts/go-echarts/v2 v2.6.5 github.com/gofrs/flock v0.13.0 github.com/google/go-github/v65 v65.0.0 github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 diff --git a/go.sum b/go.sum index 3d37a3d16e..1d8806edae 100644 --- a/go.sum +++ b/go.sum @@ -45,8 +45,8 @@ github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/go-echarts/go-echarts/v2 v2.6.3 h1:3bfcPIGzzyGe1s4fJECN0KO3F8VNYLFesRgV6iZWcHY= -github.com/go-echarts/go-echarts/v2 v2.6.3/go.mod h1:Z+spPygZRIEyqod69r0WMnkN5RV3MwhYDtw601w3G8w= +github.com/go-echarts/go-echarts/v2 v2.6.5 h1:f6h2Yt8j8G2profitrlhZvE7mJe6iAI7vYmG2Qqil+M= +github.com/go-echarts/go-echarts/v2 v2.6.5/go.mod h1:Z+spPygZRIEyqod69r0WMnkN5RV3MwhYDtw601w3G8w= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= diff --git a/vendor/github.com/go-echarts/go-echarts/v2/charts/base.go b/vendor/github.com/go-echarts/go-echarts/v2/charts/base.go index a79dc4e3a9..a0fdea1a0d 100644 --- a/vendor/github.com/go-echarts/go-echarts/v2/charts/base.go +++ b/vendor/github.com/go-echarts/go-echarts/v2/charts/base.go @@ -102,8 +102,8 @@ func (bc *BaseConfiguration) Accept(visitor ConfigurationVisitor) { bc.configurationVisitor = visitor } -// JSON wraps all the options to a map so that it could be used in the base template -// +// JSON wraps all the options to a map so that it could be used in the base template. +// You should call `bar.Validate()` before call this method to ensure the series data set in place // Get data in bytes // bs, _ : = json.Marshal(bar.JSON()) func (bc *BaseConfiguration) JSON() map[string]interface{} { @@ -111,6 +111,7 @@ func (bc *BaseConfiguration) JSON() map[string]interface{} { } // JSONNotEscaped works like method JSON, but it returns a marshaled object whose characters will not be escaped in the template +// You should call `.Validate()` before call this method to ensure the series data set in place func (bc *BaseConfiguration) JSONNotEscaped() template.HTML { obj := bc.json() buff := bytes.NewBufferString("") diff --git a/vendor/github.com/go-echarts/go-echarts/v2/opts/series.go b/vendor/github.com/go-echarts/go-echarts/v2/opts/series.go index 84013a564b..1ddef7e7c8 100644 --- a/vendor/github.com/go-echarts/go-echarts/v2/opts/series.go +++ b/vendor/github.com/go-echarts/go-echarts/v2/opts/series.go @@ -855,7 +855,7 @@ type SeriesTooltip struct { // ValueFormatter Callback function for formatting the value section in tooltip. // valueFormatter: (value) => '$' + value.toFixed(2) - ValueFormatter string `json:"valueFormatter,omitempty"` + ValueFormatter types.FuncStr `json:"valueFormatter,omitempty"` // The content formatter of tooltip's floating layer which supports string template and callback function. // See https://echarts.apache.org/en/option.html#grid.tooltip.position diff --git a/vendor/github.com/go-echarts/go-echarts/v2/opts/tooltip.go b/vendor/github.com/go-echarts/go-echarts/v2/opts/tooltip.go index 2514595534..2012c4583d 100644 --- a/vendor/github.com/go-echarts/go-echarts/v2/opts/tooltip.go +++ b/vendor/github.com/go-echarts/go-echarts/v2/opts/tooltip.go @@ -89,7 +89,7 @@ type Tooltip struct { // ValueFormatter Callback function for formatting the value section in tooltip. // valueFormatter: (value) => '$' + value.toFixed(2) - ValueFormatter string `json:"valueFormatter,omitempty"` + ValueFormatter types.FuncStr `json:"valueFormatter,omitempty"` // The content formatter of tooltip's floating layer which supports string template and callback function. // See https://echarts.apache.org/en/option.html#grid.tooltip.position diff --git a/vendor/modules.txt b/vendor/modules.txt index d738700f15..19a3ac0cc2 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -72,7 +72,7 @@ github.com/fatih/color # github.com/felixge/httpsnoop v1.0.4 ## explicit; go 1.13 github.com/felixge/httpsnoop -# github.com/go-echarts/go-echarts/v2 v2.6.3 +# github.com/go-echarts/go-echarts/v2 v2.6.5 ## explicit; go 1.18 github.com/go-echarts/go-echarts/v2/charts github.com/go-echarts/go-echarts/v2/components