refactor: remove unused code
This commit is contained in:
parent
e7dc4189d5
commit
5842c71b1d
1 changed files with 0 additions and 2 deletions
|
|
@ -23,7 +23,6 @@
|
||||||
package charts
|
package charts
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"math"
|
"math"
|
||||||
|
|
||||||
"github.com/golang/freetype/truetype"
|
"github.com/golang/freetype/truetype"
|
||||||
|
|
@ -94,7 +93,6 @@ func (b *barChart) render(result *defaultRenderResult, seriesList SeriesList) (B
|
||||||
if opt.BarMargin > 0 {
|
if opt.BarMargin > 0 {
|
||||||
barMargin = opt.BarMargin
|
barMargin = opt.BarMargin
|
||||||
}
|
}
|
||||||
fmt.Println(barMargin)
|
|
||||||
seriesCount := len(seriesList)
|
seriesCount := len(seriesList)
|
||||||
// 总的宽度-两个margin-(总数-1)的barMargin
|
// 总的宽度-两个margin-(总数-1)的barMargin
|
||||||
barWidth := (width - 2*margin - barMargin*(seriesCount-1)) / seriesCount
|
barWidth := (width - 2*margin - barMargin*(seriesCount-1)) / seriesCount
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue