@dashspec/renderer 0.1.35 → 0.1.37
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.
- package/CHANGELOG.md +19 -0
- package/dist/{chunk-42NZL3WV.js → chunk-7II42B2U.js} +11 -3
- package/dist/chunk-7II42B2U.js.map +1 -0
- package/dist/{core-Dw1UQ3Me.d.ts → core-CMrDMelI.d.ts} +17 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +7 -4
- package/dist/index.js +39 -7
- package/dist/index.js.map +1 -1
- package/dist/schema.json +3 -0
- package/docs/json-format.md +1 -0
- package/docs/widgets.md +1 -1
- package/package.json +1 -1
- package/dist/chunk-42NZL3WV.js.map +0 -1
package/dist/schema.json
CHANGED
package/docs/json-format.md
CHANGED
|
@@ -107,6 +107,7 @@ named `t` would hide it.
|
|
|
107
107
|
| `columns` | `12` | `12`, `24` or `60` (60 splits evenly into rows of 2, 3, 4, 5 or 6 cards) |
|
|
108
108
|
| `rowHeight` | `28` | px, 8–200 |
|
|
109
109
|
| `gap` | `12` | px, 0–48 |
|
|
110
|
+
| `fillRows` | `false` | when a panel is hidden, the rest of its row share the row's width |
|
|
110
111
|
| `exactHeights` | `false` | viewers only: `fit` panels are exactly their content's height (not whole rows); `gap` stays below every panel |
|
|
111
112
|
|
|
112
113
|
## `spec.connections`
|
package/docs/widgets.md
CHANGED
|
@@ -107,7 +107,7 @@ Field props such as `x`, `label` or `value` name a field of each data row; dot p
|
|
|
107
107
|
|
|
108
108
|
| Kind | What it shows | Main props | Events |
|
|
109
109
|
|---|---|---|---|
|
|
110
|
-
| `BarChart` | Bars, grouped, stacked or horizontal | `x` (required), `y` (field or list), `seriesBy`, `labels`, `seriesColors` (colour per y field or series value), `legendStyle` (`chart` / `html`: legend list in the header row), `hideZeroLabels`, `maxDecimals` (labels with at most n decimals, trailing zeros dropped), `stacked`, `normalized`, `horizontal`, `range: { low, high }`, `pageSize`, `colorBy` (`average` / `none`), `partial`, `valueLabels`, `averageLine`, `legendLabels`, `target`, `targetLabel`, `valueAxis` (`min`, `max`, `atLeast`, `step`, `minStep`), `tooltip` (`{ title, lines }`, templates over the hovered `row`; `**bold**` for values), `unit`, `format` | `click`, `doubleClick`, `hover`, `hoverEnd`, `legendClick`, `brush`, `datazoom` (parts `bar`, `legend`, `axis`) |
|
|
110
|
+
| `BarChart` | Bars, grouped, stacked or horizontal | `x` (required), `y` (field or list), `seriesBy`, `labels`, `seriesColors` (colour per y field or series value), `legendStyle` (`chart` / `html`: legend list in the header row), `hideZeroLabels`, `average` (number or path), `toneField` + `toneMap` (bar colours from data), `maxDecimals` (labels with at most n decimals, trailing zeros dropped), `stacked`, `normalized`, `horizontal`, `range: { low, high }`, `pageSize`, `colorBy` (`average` / `none`), `partial`, `valueLabels`, `averageLine`, `legendLabels`, `target`, `targetLabel`, `valueAxis` (`min`, `max`, `atLeast`, `step`, `minStep`), `tooltip` (`{ title, lines }`, templates over the hovered `row`; `**bold**` for values), `unit`, `format` | `click`, `doubleClick`, `hover`, `hoverEnd`, `legendClick`, `brush`, `datazoom` (parts `bar`, `legend`, `axis`) |
|
|
111
111
|
| `LineChart` | Lines or areas over `x` | `x` (required), `y`, `seriesBy`, `area`, `gradient`, `smooth`, plus the bar chart's `labels`, `target`, `unit`, `format` | same as BarChart (parts `point`, `legend`, `axis`) |
|
|
112
112
|
| `PieChart` | A pie or donut | `label`, `value` (required), `donut`, `unit`, `format`, `decimals` | `click`, `hover`, `hoverEnd`, `legendClick` (parts `slice`, `legend`) |
|
|
113
113
|
| `Scatter` | Points by two numbers | `x`, `y` (required), `size`, `series`, `xLabel`, `yLabel` | `click`, `hover`, `hoverEnd`, `brush`, `legendClick` |
|