Skip to content

Commit

Permalink
fix breaking change in echarts
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-xyz committed Nov 20, 2024
1 parent 7b6985c commit ac28e1c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ui/chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ func newBarChart(scores map[int]int) *charts.Bar {
BackgroundColor: light,
}),
charts.WithYAxisOpts(opts.YAxis{
SplitArea: &opts.SplitArea{Show: false},
SplitLine: &opts.SplitLine{Show: false},
AxisLabel: &opts.AxisLabel{Show: true, Color: dark},
AxisLine: &opts.AxisLine{Show: true, LineStyle: &opts.LineStyle{Color: dark}},
SplitArea: &opts.SplitArea{Show: opts.Bool(false)},
SplitLine: &opts.SplitLine{Show: opts.Bool(false)},
AxisLabel: &opts.AxisLabel{Show: opts.Bool(true), Color: dark},
AxisLine: &opts.AxisLine{Show: opts.Bool(true), LineStyle: &opts.LineStyle{Color: dark}},
}, 0),
charts.WithXAxisOpts(opts.XAxis{
SplitArea: &opts.SplitArea{Show: false},
SplitLine: &opts.SplitLine{Show: false},
AxisLabel: &opts.AxisLabel{Show: true, Color: dark},
AxisTick: &opts.AxisTick{Show: true},
SplitArea: &opts.SplitArea{Show: opts.Bool(false)},
SplitLine: &opts.SplitLine{Show: opts.Bool(false)},
AxisLabel: &opts.AxisLabel{Show: opts.Bool(true), Color: dark},
AxisTick: &opts.AxisTick{Show: opts.Bool(true)},
}, 0),
charts.WithColorsOpts(opts.Colors{dark}),
)
Expand Down

0 comments on commit ac28e1c

Please sign in to comment.