feat: support bar chart render

This commit is contained in:
vicanso 2022-06-14 23:07:11 +08:00
parent 8a5990fe8f
commit b69728dd12
11 changed files with 408 additions and 50 deletions

View file

@ -490,7 +490,7 @@ func main() {
Left: 1,
Right: p.Width() - 1,
Bottom: top + 50,
})), charts.AxisPainterOption{
})), charts.AxisOption{
Data: []string{
"Mon",
"Tue",
@ -512,7 +512,7 @@ func main() {
Left: 1,
Right: p.Width() - 1,
Bottom: top + 50,
})), charts.AxisPainterOption{
})), charts.AxisOption{
Position: charts.PositionTop,
BoundaryGap: charts.FalseFlag(),
Data: []string{
@ -536,7 +536,7 @@ func main() {
Left: 10,
Right: 60,
Bottom: top + 200,
})), charts.AxisPainterOption{
})), charts.AxisOption{
Position: charts.PositionLeft,
Data: []string{
"Mon",
@ -557,7 +557,7 @@ func main() {
Left: 100,
Right: 150,
Bottom: top + 200,
})), charts.AxisPainterOption{
})), charts.AxisOption{
Position: charts.PositionRight,
Data: []string{
"Mon",
@ -579,7 +579,7 @@ func main() {
Left: 150,
Right: 300,
Bottom: top + 200,
})), charts.AxisPainterOption{
})), charts.AxisOption{
BoundaryGap: charts.FalseFlag(),
Position: charts.PositionLeft,
Data: []string{