feat: support radius for pie chart
This commit is contained in:
parent
e07cb90607
commit
524eb79a8e
12 changed files with 376 additions and 66 deletions
3
axis.go
3
axis.go
|
|
@ -277,6 +277,9 @@ func (a *axis) axisTick(opt *axisRenderOption) {
|
|||
height := d.Box.Height()
|
||||
data := *a.data
|
||||
tickCount := len(data)
|
||||
if tickCount == 0 {
|
||||
return
|
||||
}
|
||||
if !opt.boundaryGap {
|
||||
tickCount--
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue