@blueprint-chart/docs 2.13.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueprint-chart/docs",
3
- "version": "2.13.0",
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.13.0",
37
- "@blueprint-chart/ui": "2.13.0",
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` |
@@ -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` |
@@ -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` |
@@ -68,6 +68,10 @@ Every property `donut` accepts, beside the [frame and layout keys](/reference/ds
68
68
  | `displayAsPercentage` | boolean | `false` |
69
69
  | `verticalNumberFormat` | numberFormat | (unset) |
70
70
  | `showTotal` | boolean | `true` |
71
+ | `centerLabel` | select: `total`, `slice`, `custom` | `total` |
72
+ | `centerSlice` | text | `""` |
73
+ | `centerText` | text | `""` |
74
+ | `totalLabel` | text | `Total` |
71
75
  | `showLabels` | boolean | `true` |
72
76
  | `showValues` | boolean | `true` |
73
77
  | `sliceMax` | text | `6` |
@@ -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 first value column, largest first.
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