feat: support make point and make line
This commit is contained in:
parent
fd05250305
commit
e558634dda
16 changed files with 308 additions and 51 deletions
3
xaxis.go
3
xaxis.go
|
|
@ -77,8 +77,7 @@ func drawXAxis(p *Draw, opt *XAxisOption, yAxisCount int) (int, *Range, error) {
|
|||
}
|
||||
axis := NewAxis(dXAxis, data, style)
|
||||
axis.Render()
|
||||
|
||||
return axis.measureAxis(), &Range{
|
||||
return axis.measure().Height, &Range{
|
||||
divideCount: len(opt.Data),
|
||||
Min: 0,
|
||||
Max: max,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue