Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ auto-generated per-PR notes; this file is the curated, human-readable history.
## [Unreleased]

### Added
- **Bar, Column, Area, and Pie now share type-specific presentation presets**
(#258) through the same compact Style selector. Bar/Column add Grouped,
Stacked, Compact, Joined, Minimal, and Data range; Area adds additive
Stacked to its Line-family variants; Pie adds Donut and a genuinely compact
frame. Presets update one type-specific `panel.cfg.style` object, match that
object before claiming a named state, preserve dormant
fields and unknown extensions across type switches, and render identically
in the workbench and Dashboard. The canonical Spec schema and completion now
document the complete type-specific style branches.
- **Line and Area Style now offers seven complete presentation presets**
(#256). Clean, Smooth, Stepped, Points, Zero-based, Minimal, and Sparkline
write the full renderer-independent `panel.cfg.style` object through the
Expand Down
281 changes: 272 additions & 9 deletions schemas/generated/library-v2.bundle.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@
"fieldConfig"
]
},
"chartStyle": {
"title": "Line and Area style",
"lineChartStyle": {
"title": "Line style",
"description": "Renderer-independent line presentation. Unknown fields and future string values remain storable.",
"type": "object",
"properties": {
Expand Down Expand Up @@ -394,6 +394,234 @@
"axes"
]
},
"areaChartStyle": {
"title": "Area style",
"description": "Curve, marker, and additive stacking presentation for Area charts.",
"allOf": [
{
"$ref": "#/$defs/lineChartStyle"
},
{
"type": "object",
"properties": {
"stack": {
"title": "Area stacking",
"description": "overlay draws series independently; stacked uses one shared additive stack without normalization.",
"anyOf": [
{
"type": "string",
"enum": [
"overlay",
"stacked"
]
},
{
"type": "string"
}
],
"default": "overlay"
}
},
"additionalProperties": true
}
],
"x-altinity-order": [
"curve",
"points",
"stack",
"scale",
"legend",
"grid",
"axes"
]
},
"barChartStyle": {
"title": "Bar and Column style",
"description": "Grouping and category-spacing presentation shared by horizontal Bar and vertical Column charts.",
"type": "object",
"properties": {
"mode": {
"title": "Bar grouping",
"description": "grouped draws measures side by side; stacked adds them on one shared value stack.",
"anyOf": [
{
"type": "string",
"enum": [
"grouped",
"stacked"
]
},
{
"type": "string"
}
],
"default": "grouped"
},
"density": {
"title": "Category spacing",
"description": "normal uses standard spacing, compact reduces gaps, and joined removes category gaps.",
"anyOf": [
{
"type": "string",
"enum": [
"normal",
"compact",
"joined"
]
},
{
"type": "string"
}
],
"default": "normal"
},
"scale": {
"title": "Value scale",
"description": "zero and auto anchor Bar/Column at zero; data uses the data range.",
"anyOf": [
{
"type": "string",
"enum": [
"auto",
"zero",
"data"
]
},
{
"type": "string"
}
],
"default": "zero"
},
"legend": {
"title": "Legend visibility",
"description": "auto shows the legend for multiple datasets; show and hide override that behavior.",
"anyOf": [
{
"type": "string",
"enum": [
"auto",
"show",
"hide"
]
},
{
"type": "string"
}
],
"default": "auto"
},
"grid": {
"title": "Grid visibility",
"description": "auto shows the value grid in the workbench and hides it on Dashboard; show and hide override the surface default.",
"anyOf": [
{
"type": "string",
"enum": [
"auto",
"show",
"hide"
]
},
{
"type": "string"
}
],
"default": "auto"
},
"axes": {
"title": "Axis visibility",
"description": "show renders both axes; hide removes both axes while retaining chart interaction.",
"anyOf": [
{
"type": "string",
"enum": [
"show",
"hide"
]
},
{
"type": "string"
}
],
"default": "show"
}
},
"additionalProperties": true,
"x-altinity-order": [
"mode",
"density",
"scale",
"legend",
"grid",
"axes"
]
},
"pieChartStyle": {
"title": "Pie style",
"description": "Pie or Donut shape presentation.",
"type": "object",
"properties": {
"shape": {
"title": "Pie shape",
"description": "pie fills the center; donut uses a fixed 60% cutout.",
"anyOf": [
{
"type": "string",
"enum": [
"pie",
"donut"
]
},
{
"type": "string"
}
],
"default": "pie"
},
"legend": {
"title": "Legend visibility",
"description": "show renders the slice legend; hide relies on tooltips.",
"anyOf": [
{
"type": "string",
"enum": [
"auto",
"show",
"hide"
]
},
{
"type": "string"
}
],
"default": "show"
},
"frame": {
"title": "Chart frame",
"description": "compact reduces Pie layout padding; normal retains the standard frame.",
"anyOf": [
{
"type": "string",
"enum": [
"normal",
"compact"
]
},
{
"type": "string"
}
],
"default": "normal"
}
},
"additionalProperties": true,
"x-altinity-order": [
"shape",
"legend",
"frame"
]
},
"chartCfg": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -440,7 +668,7 @@
"series"
]
},
"lineChartCfg": {
"styledChartCfg": {
"allOf": [
{
"$ref": "#/$defs/chartCfg"
Expand All @@ -449,7 +677,7 @@
"type": "object",
"properties": {
"style": {
"$ref": "#/$defs/chartStyle"
"type": "object"
}
}
}
Expand Down Expand Up @@ -497,7 +725,14 @@
},
"allOf": [
{
"$ref": "#/$defs/chartCfg"
"$ref": "#/$defs/styledChartCfg"
},
{
"properties": {
"style": {
"$ref": "#/$defs/barChartStyle"
}
}
},
{
"properties": {
Expand Down Expand Up @@ -525,7 +760,14 @@
},
"allOf": [
{
"$ref": "#/$defs/chartCfg"
"$ref": "#/$defs/styledChartCfg"
},
{
"properties": {
"style": {
"$ref": "#/$defs/barChartStyle"
}
}
},
{
"properties": {
Expand Down Expand Up @@ -553,7 +795,14 @@
},
"allOf": [
{
"$ref": "#/$defs/lineChartCfg"
"$ref": "#/$defs/styledChartCfg"
},
{
"properties": {
"style": {
"$ref": "#/$defs/lineChartStyle"
}
}
},
{
"properties": {
Expand Down Expand Up @@ -581,7 +830,14 @@
},
"allOf": [
{
"$ref": "#/$defs/lineChartCfg"
"$ref": "#/$defs/styledChartCfg"
},
{
"properties": {
"style": {
"$ref": "#/$defs/areaChartStyle"
}
}
},
{
"properties": {
Expand Down Expand Up @@ -609,7 +865,14 @@
},
"allOf": [
{
"$ref": "#/$defs/chartCfg"
"$ref": "#/$defs/styledChartCfg"
},
{
"properties": {
"style": {
"$ref": "#/$defs/pieChartStyle"
}
}
},
{
"properties": {
Expand Down
Loading