feat: support horizontal bar chart

This commit is contained in:
vicanso 2022-06-15 23:30:37 +08:00
parent b69728dd12
commit 3f24521593
15 changed files with 677 additions and 91 deletions

View file

@ -24,7 +24,6 @@ package charts
import (
"github.com/golang/freetype/truetype"
"github.com/wcharczuk/go-chart/v2"
)
func NewMarkPoint(markPointTypes ...string) SeriesMarkPoint {
@ -99,5 +98,5 @@ func (m *markPointPainter) Render() (Box, error) {
painter.Text(text, p.X-textBox.Width()>>1, p.Y-symbolSize>>1-2)
}
}
return chart.BoxZero, nil
return BoxZero, nil
}