WIP charts2 frame parts

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 14:44:30 -04:00
1 parent 37f432caf8
commit bb93648d86
10 files changed
+312 -71

No files matched your search

+2 -2
View File
@@ -43,11 +43,11 @@ func ScatterChart(c *ui.Context, selected *[]ScatterKey, groups []ScatterGroup,
k := Tokens(c)
pal := internal.Palette(k)
size := FontSize(c, theme.CaptionSize)
keys := make([]chartKey, len(groups))
keys := make([]ChartLegendItem, len(groups))
var marks []ScatterKey
b := [6]float64{math.Inf(1), math.Inf(-1), math.Inf(1), math.Inf(-1), math.Inf(1), math.Inf(-1)}
for gi, g := range groups {
keys[gi] = chartKey{Name: g.Name, Color: pal[gi%len(pal)], Shape: gi}
keys[gi] = ChartLegendItem{Name: g.Name, Color: pal[gi%len(pal)], Shape: gi}
if g.Name == "" || ch.hidden(g.Name) {
continue
}