You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(charts): support palette indices for AreaFill colors
Update AreaFill model to accept both hex strings and palette indices for
color fields. Changes include:
- Allow `color` field to accept int (palette index) or str (hex color)
- Change default `color` from "#15607a" to 0 (first palette color)
- Allow `color_negative` to accept int, str, or None
- Change default `color_negative` from "#cc0000" to None (disabled)
- Update auto-enable logic to check for None instead of default hex value
- Only serialize `colorNegative` when explicitly set (not None)
- Update field descriptions to reflect new behavior
This provides more flexibility for users to reference theme palette colors
by index while maintaining backward compatibility with hex color strings.
0 commit comments