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 NewMarkLine(markLineTypes ...string) SeriesMarkLine {
@ -104,7 +103,7 @@ func (m *markLinePainter) Render() (Box, error) {
painter.Text(text, width, y+textBox.Height()>>1-2)
}
}
return chart.BoxZero, nil
return BoxZero, nil
}
func markLineRender(opt markLineRenderOption) {