- 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
10 lines
204 B
Go
10 lines
204 B
Go
package renderer
|
|
|
|
func getColor(index int) string {
|
|
colors := []string{
|
|
"#f9c2c8", "#f3d2b1", "#e1e9c5", "#b2d5e8",
|
|
"#8fa3c4", "#75B4A0", "#3b7f8d", "#a18b7c",
|
|
}
|
|
return colors[index%len(colors)]
|
|
}
|