- Support 9 chart types: line, bar, pie, scatter, bubble, donut, mixed, polar, radar - Multi-format output: ANSI, SVG, PNG, Markdown - Go + Fiber + gonum/plot - Docker support - Morandi color palette
15 lines
223 B
Go
15 lines
223 B
Go
package renderer
|
|
|
|
import "github.com/picoclaw/chart/internal/types"
|
|
|
|
type Renderer interface {
|
|
Render(chart *types.Chart) ([]byte, error)
|
|
}
|
|
|
|
type RenderResult struct {
|
|
Text string
|
|
ANSI string
|
|
SVG string
|
|
PNG []byte
|
|
}
|