diff --git a/ui/chart.go b/ui/chart.go index 904b170..4ba4d58 100644 --- a/ui/chart.go +++ b/ui/chart.go @@ -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}), )