@blueprint-chart/docs 2.12.0 → 2.14.0
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/package.json +3 -3
- package/src/charts/bar-grouped.md +3 -1
- package/src/charts/bar-multi.md +3 -1
- package/src/charts/bar-split.md +3 -1
- package/src/charts/bar-stacked.md +3 -1
- package/src/charts/bar-vertical.md +1 -0
- package/src/charts/column-stacked.md +5 -1
- package/src/charts/donut.md +5 -0
- package/src/charts/dot-plot.md +8 -3
- package/src/charts/line-multi.md +2 -0
- package/src/charts/line.md +2 -0
- package/src/charts/pie.md +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blueprint-chart/docs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"description": "Public documentation for Blueprint Chart — handbook, guide, BPC DSL spec, and lib API reference.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"provenance": true
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@blueprint-chart/lib": "2.
|
|
37
|
-
"@blueprint-chart/ui": "2.
|
|
36
|
+
"@blueprint-chart/lib": "2.14.0",
|
|
37
|
+
"@blueprint-chart/ui": "2.14.0",
|
|
38
38
|
"@fontsource-variable/geist": "^5.3.0",
|
|
39
39
|
"@fontsource-variable/geist-mono": "^5.3.0",
|
|
40
40
|
"@fontsource/dm-serif-display": "^5.3.0",
|
|
@@ -55,7 +55,9 @@ Every property `bar-grouped` accepts, beside the [frame and layout keys](/refere
|
|
|
55
55
|
| `autoContrast` | boolean | `false` |
|
|
56
56
|
| `allowDarkMode` | boolean | `true` |
|
|
57
57
|
| `barGap` | text | `60` |
|
|
58
|
-
| `sortMode` | select: `none`, `total`, `within-groups` | `total` |
|
|
58
|
+
| `sortMode` | select: `none`, `total`, `within-groups`, `series` | `total` |
|
|
59
|
+
| `sortSeries` | select | `""` |
|
|
60
|
+
| `sortReverse` | boolean | `false` |
|
|
59
61
|
| `legend` | boolean | `true` |
|
|
60
62
|
| `legendAnchor` | select: `start`, `middle`, `end` | `start` |
|
|
61
63
|
| `legendPosition` | select: `top`, `bottom`, `left`, `right` | `top` |
|
package/src/charts/bar-multi.md
CHANGED
|
@@ -59,7 +59,9 @@ Every property `bar-multi` accepts, beside the [frame and layout keys](/referenc
|
|
|
59
59
|
| `autoContrast` | boolean | `false` |
|
|
60
60
|
| `allowDarkMode` | boolean | `true` |
|
|
61
61
|
| `barGap` | text | `60` |
|
|
62
|
-
| `sortMode` | select: `none`, `total`, `within-groups` | `total` |
|
|
62
|
+
| `sortMode` | select: `none`, `total`, `within-groups`, `series` | `total` |
|
|
63
|
+
| `sortSeries` | select | `""` |
|
|
64
|
+
| `sortReverse` | boolean | `false` |
|
|
63
65
|
| `legend` | boolean | `false` |
|
|
64
66
|
| `legendAnchor` | select: `start`, `middle`, `end` | `start` |
|
|
65
67
|
| `legendPosition` | select: `top`, `bottom`, `left`, `right` | `top` |
|
package/src/charts/bar-split.md
CHANGED
|
@@ -57,7 +57,9 @@ Every property `bar-split` accepts, beside the [frame and layout keys](/referenc
|
|
|
57
57
|
| `allowDarkMode` | boolean | `true` |
|
|
58
58
|
| `barGap` | text | `60` |
|
|
59
59
|
| `sharedScale` | boolean | `false` |
|
|
60
|
-
| `sortMode` | select: `none`, `total`, `within-groups` | `none` |
|
|
60
|
+
| `sortMode` | select: `none`, `total`, `within-groups`, `series` | `none` |
|
|
61
|
+
| `sortSeries` | select | `""` |
|
|
62
|
+
| `sortReverse` | boolean | `false` |
|
|
61
63
|
| `legend` | boolean | `true` |
|
|
62
64
|
| `legendAnchor` | select: `start`, `middle`, `end` | `start` |
|
|
63
65
|
| `legendPosition` | select: `top`, `bottom`, `left`, `right` | `top` |
|
|
@@ -58,7 +58,9 @@ Every property `bar-stacked` accepts, beside the [frame and layout keys](/refere
|
|
|
58
58
|
| `allowDarkMode` | boolean | `true` |
|
|
59
59
|
| `barGap` | text | `60` |
|
|
60
60
|
| `stackMode` | select: `normal`, `percent` | `normal` |
|
|
61
|
-
| `sortMode` | select: `none`, `total`, `within-groups` | `none` |
|
|
61
|
+
| `sortMode` | select: `none`, `total`, `within-groups`, `series` | `none` |
|
|
62
|
+
| `sortSeries` | select | `""` |
|
|
63
|
+
| `sortReverse` | boolean | `false` |
|
|
62
64
|
| `legend` | boolean | `true` |
|
|
63
65
|
| `legendAnchor` | select: `start`, `middle`, `end` | `start` |
|
|
64
66
|
| `legendPosition` | select: `top`, `bottom`, `left`, `right` | `top` |
|
|
@@ -66,6 +66,7 @@ Every property `bar-vertical` accepts, beside the [frame and layout keys](/refer
|
|
|
66
66
|
| `autoContrast` | boolean | `false` |
|
|
67
67
|
| `allowDarkMode` | boolean | `true` |
|
|
68
68
|
| `swapLabelValue` | boolean | `false` |
|
|
69
|
+
| `negativeColor` | text | `""` |
|
|
69
70
|
| `barBackground` | boolean | `false` |
|
|
70
71
|
| `barSeparators` | boolean | `false` |
|
|
71
72
|
| `barGap` | text | `60` |
|
|
@@ -53,7 +53,9 @@ Every property `column-stacked` accepts, beside the [frame and layout keys](/ref
|
|
|
53
53
|
| `allowDarkMode` | boolean | `true` |
|
|
54
54
|
| `barGap` | text | `60` |
|
|
55
55
|
| `stackMode` | select: `normal`, `percent` | `normal` |
|
|
56
|
-
| `sortMode` | select: `none`, `total`, `within-groups` | `none` |
|
|
56
|
+
| `sortMode` | select: `none`, `total`, `within-groups`, `series` | `none` |
|
|
57
|
+
| `sortSeries` | select | `""` |
|
|
58
|
+
| `sortReverse` | boolean | `false` |
|
|
57
59
|
| `legend` | boolean | `true` |
|
|
58
60
|
| `legendAnchor` | select: `start`, `middle`, `end` | `start` |
|
|
59
61
|
| `legendPosition` | select: `top`, `bottom`, `left`, `right` | `top` |
|
|
@@ -81,6 +83,7 @@ Every property `column-stacked` accepts, beside the [frame and layout keys](/ref
|
|
|
81
83
|
| `crosshairDirection` | select: `both`, `vertical`, `horizontal` | `both` |
|
|
82
84
|
| `crosshairStyle` | select: `solid`, `dashed`, `dotted` | `dashed` |
|
|
83
85
|
| `crosshairColor` | text | `#999` |
|
|
86
|
+
| `showTotal` | boolean | `false` |
|
|
84
87
|
|
|
85
88
|
<!-- options:end -->
|
|
86
89
|
|
|
@@ -89,6 +92,7 @@ Every property `column-stacked` accepts, beside the [frame and layout keys](/ref
|
|
|
89
92
|
- Stacking too many series — the top layers float and lose their baseline
|
|
90
93
|
- Switching to `stackMode = "percent"` without telling the reader hides the change in absolute total
|
|
91
94
|
- Inconsistent segment ordering between columns destroys the visual flow
|
|
95
|
+
- `showTotal` labels the sum of the positive segments only; negative segments are left out and a column with no positive value gets no total. It is off in percent mode, where every total would read 100 %
|
|
92
96
|
|
|
93
97
|
## Related types
|
|
94
98
|
|
package/src/charts/donut.md
CHANGED
|
@@ -66,7 +66,12 @@ Every property `donut` accepts, beside the [frame and layout keys](/reference/ds
|
|
|
66
66
|
| `directLabelling` | select: `""`, `auto`, `outside`, `inside` | `auto` |
|
|
67
67
|
| `tooltips` | boolean | `false` |
|
|
68
68
|
| `displayAsPercentage` | boolean | `false` |
|
|
69
|
+
| `verticalNumberFormat` | numberFormat | (unset) |
|
|
69
70
|
| `showTotal` | boolean | `true` |
|
|
71
|
+
| `centerLabel` | select: `total`, `slice`, `custom` | `total` |
|
|
72
|
+
| `centerSlice` | text | `""` |
|
|
73
|
+
| `centerText` | text | `""` |
|
|
74
|
+
| `totalLabel` | text | `Total` |
|
|
70
75
|
| `showLabels` | boolean | `true` |
|
|
71
76
|
| `showValues` | boolean | `true` |
|
|
72
77
|
| `sliceMax` | text | `6` |
|
package/src/charts/dot-plot.md
CHANGED
|
@@ -95,10 +95,13 @@ Arrows apply to dumbbells only and are ignored in range style.
|
|
|
95
95
|
|
|
96
96
|
`sortMode` orders the rows. The default is `value`.
|
|
97
97
|
|
|
98
|
-
- `value` sorts by the
|
|
98
|
+
- `value` sorts by the last value column, largest first.
|
|
99
99
|
- `gap` sorts by the last value column minus the first, largest first. Outside a dumbbell it falls back to `value`.
|
|
100
|
+
- `change` sorts by the percent change from the first value column to the last, largest first. Rows starting at 0 count as no change. Outside a dumbbell it falls back to `value`.
|
|
100
101
|
- `none` keeps the order of your data.
|
|
101
102
|
|
|
103
|
+
Set `sortReverse = true` to put the smallest first.
|
|
104
|
+
|
|
102
105
|
## Labels
|
|
103
106
|
|
|
104
107
|
Value labels are off by default. `valueLabels = true` adds them:
|
|
@@ -198,7 +201,8 @@ Every property `dot-plot` accepts, beside the [frame and layout keys](/reference
|
|
|
198
201
|
| `low` | text | `""` |
|
|
199
202
|
| `high` | text | `""` |
|
|
200
203
|
| `arrows` | select: `none`, `forward`, `backward`, `both` | `none` |
|
|
201
|
-
| `sortMode` | select: `none`, `value`, `gap` | `value` |
|
|
204
|
+
| `sortMode` | select: `none`, `value`, `gap`, `change` | `value` |
|
|
205
|
+
| `sortReverse` | boolean | `false` |
|
|
202
206
|
| `legend` | boolean | `true` |
|
|
203
207
|
| `legendPosition` | select: `top`, `bottom`, `left`, `right` | `top` |
|
|
204
208
|
| `legendAnchor` | select: `start`, `middle`, `end` | `start` |
|
|
@@ -219,13 +223,14 @@ Every property `dot-plot` accepts, beside the [frame and layout keys](/reference
|
|
|
219
223
|
| `horizontalRangeMin` | text | (unset) |
|
|
220
224
|
| `horizontalRangeMax` | text | (unset) |
|
|
221
225
|
| `valueLabels` | boolean | `false` |
|
|
226
|
+
| `dotLabels` | select: `both`, `start`, `end`, `difference`, `change` | `both` |
|
|
222
227
|
| `tooltips` | boolean | `true` |
|
|
223
228
|
|
|
224
229
|
<!-- options:end -->
|
|
225
230
|
|
|
226
231
|
## Common pitfalls
|
|
227
232
|
|
|
228
|
-
- Using `gap` sort on a single value or a range: it falls back to `value`
|
|
233
|
+
- Using `gap` or `change` sort on a single value or a range: it falls back to `value`
|
|
229
234
|
- Expecting range bars from columns named `High` and `Low` without setting `dotStyle = "range"`: they draw as dumbbell dots instead
|
|
230
235
|
- Reading the arrow as a trend: it only points from the first column to the last
|
|
231
236
|
- Using a log axis with values, lows or highs at or below 0: those rows are not drawn and are reported
|
package/src/charts/line-multi.md
CHANGED
|
@@ -94,6 +94,8 @@ Every property `line-multi` accepts, beside the [frame and layout keys](/referen
|
|
|
94
94
|
| `lineSymbolStyle` | select: `filled`, `hollow` | `filled` |
|
|
95
95
|
| `lineSymbolSize` | text | `3.5` |
|
|
96
96
|
| `lineSymbolOpacity` | text | `1` |
|
|
97
|
+
| `valueLabelPoints` | select: `all`, `firstLast`, `last`, `everyN` | `all` |
|
|
98
|
+
| `valueLabelEvery` | text | `2` |
|
|
97
99
|
|
|
98
100
|
<!-- options:end -->
|
|
99
101
|
|
package/src/charts/line.md
CHANGED
|
@@ -90,6 +90,8 @@ Every property `line` accepts, beside the [frame and layout keys](/reference/dsl
|
|
|
90
90
|
| `lineSymbolStyle` | select: `filled`, `hollow` | `filled` |
|
|
91
91
|
| `lineSymbolSize` | text | `3.5` |
|
|
92
92
|
| `lineSymbolOpacity` | text | `1` |
|
|
93
|
+
| `valueLabelPoints` | select: `all`, `firstLast`, `last`, `everyN` | `all` |
|
|
94
|
+
| `valueLabelEvery` | text | `2` |
|
|
93
95
|
|
|
94
96
|
<!-- options:end -->
|
|
95
97
|
|
package/src/charts/pie.md
CHANGED
|
@@ -63,6 +63,7 @@ Every property `pie` accepts, beside the [frame and layout keys](/reference/dsl/
|
|
|
63
63
|
| `directLabelling` | select: `""`, `auto`, `outside`, `inside` | `auto` |
|
|
64
64
|
| `tooltips` | boolean | `false` |
|
|
65
65
|
| `displayAsPercentage` | boolean | `true` |
|
|
66
|
+
| `verticalNumberFormat` | numberFormat | (unset) |
|
|
66
67
|
| `showLabels` | boolean | `true` |
|
|
67
68
|
| `showValues` | boolean | `true` |
|
|
68
69
|
| `sliceMax` | text | `5` |
|