Skip to content

Commit

Permalink
(featu) fix smooth bars on series
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed May 17, 2024
1 parent 6d47fe0 commit e529bf9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/bar_chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ func (c *BarChart) GetVertical(xData []string, yData [][]float64, names []string
if len(opt.SeriesList) > 1 {
idx = 1
}
opt.SeriesList[idx].RoundRadius = 10
for series := range opt.SeriesList {
opt.SeriesList[series].RoundRadius = 10
}
opt.SeriesList[idx].MarkPoint = charts.NewMarkPoint(
charts.SeriesMarkDataTypeMax,
charts.SeriesMarkDataTypeMin,
Expand Down Expand Up @@ -143,7 +145,9 @@ func (c *BarChart) GetStacked(xData []string, yData [][]float64, zData [][]float
if len(opt.SeriesList) > 1 {
idx = 1
}
opt.SeriesList[idx].RoundRadius = 10
for series := range opt.SeriesList {
opt.SeriesList[series].RoundRadius = 10
}
opt.SeriesList[idx].MarkPoint = charts.NewMarkPoint(
charts.SeriesMarkDataTypeMax,
charts.SeriesMarkDataTypeMin,
Expand Down

0 comments on commit e529bf9

Please sign in to comment.