Skip to content

Commit

Permalink
fix: duplicated coordinateSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
Koooooo-7 committed Jan 30, 2024
1 parent 7eac831 commit 247112a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions charts/series.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ type SingleSeries struct {
// Line
ColorBy string `json:"colorBy,omitempty"`
// Line
CoordinateSystem string `json:"coordinateSystem,omitempty"`
// Line
PolarIndex int `json:"polarIndex,omitempty"`
// Line
Step interface{} `json:"step,omitempty"`
Expand All @@ -67,7 +65,8 @@ type SingleSeries struct {
IsWaveAnimation types.Bool `json:"waveAnimation,omitempty"`

// Map
MapType string `json:"map,omitempty"`
MapType string `json:"map,omitempty"`
// Map | Line
CoordSystem string `json:"coordinateSystem,omitempty"`

// Pie
Expand Down Expand Up @@ -292,7 +291,7 @@ func WithHeatMapChartOpts(opt opts.HeatMapChart) SeriesOpts {
func WithLineChartOpts(opt opts.LineChart) SeriesOpts {
return func(s *SingleSeries) {
s.ColorBy = opt.ColorBy
s.CoordinateSystem = opt.CoordinateSystem
s.CoordSystem = opt.CoordinateSystem
s.XAxisIndex = opt.XAxisIndex
s.YAxisIndex = opt.YAxisIndex
s.PolarIndex = opt.PolarIndex
Expand Down

0 comments on commit 247112a

Please sign in to comment.