@rokkit/chart 1.3.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,6 +54,10 @@ export type PlotSpec = {
54
54
  title?: string | undefined;
55
55
  summary?: string | undefined;
56
56
  orientation?: "horizontal" | "vertical" | undefined;
57
+ /**
58
+ * Stack (true) or group (false) multi-series bars. Forwarded to spec-driven bar geoms via `options.stack`. Default: false.
59
+ */
60
+ stack?: boolean | undefined;
57
61
  preset?: string | undefined;
58
62
  width?: number | undefined;
59
63
  height?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokkit/chart",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "type": "module",
5
5
  "description": "Data-driven chart components",
6
6
  "repository": {
package/src/Plot.svelte CHANGED
@@ -236,7 +236,11 @@
236
236
  symbol={geomSpec.symbol}
237
237
  stat={geomSpec.stat}
238
238
  label={geomSpec.label}
239
- options={geomSpec.options}
239
+ options={{
240
+ ...(spec?.stack !== undefined ? { stack: spec.stack } : {}),
241
+ ...(spec?.orientation !== undefined ? { orientation: spec.orientation } : {}),
242
+ ...(geomSpec.options ?? {})
243
+ }}
240
244
  />
241
245
  {/if}
242
246
  {/each}
@@ -46,6 +46,7 @@
46
46
  * @property {string} [title]
47
47
  * @property {string} [summary]
48
48
  * @property {'horizontal'|'vertical'} [orientation]
49
+ * @property {boolean} [stack] Stack (true) or group (false) multi-series bars. Forwarded to spec-driven bar geoms via `options.stack`. Default: false.
49
50
  * @property {string} [preset]
50
51
  * @property {number} [width]
51
52
  * @property {number} [height]