@slotted/angular 0.1.0-beta.31 → 0.1.0-beta.32

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.
@@ -1,7 +1,7 @@
1
1
  <!-- index: ./index.md -->
2
2
  # chart
3
3
 
4
- `data-ui="chart"` · Line, bar, area, pie and scatter charts.
4
+ `data-ui="chart"` · Line, bar, area, pie, range and scatter charts.
5
5
 
6
6
  ## Examples
7
7
 
@@ -199,6 +199,16 @@ Excerpt — not a complete module
199
199
  ></figure>
200
200
  ```
201
201
 
202
+ ### A band around a line
203
+
204
+ A range series fills between two fields of each record, under the line it names with of, in that line’s color. One legend item hides the band, the tooltip reads one row with both bounds, and the table view lists both columns.
205
+
206
+ Excerpt — not a complete module
207
+
208
+ ```html
209
+ <figure slChart title="Forecast" [data]="forecast" [series]="forecastSeries"></figure>
210
+ ```
211
+
202
212
  ### Targets, ranges and events
203
213
 
204
214
  A band for the tolerance range, a line for the annual target and a vertical line on the month the campaign started — each labelled on the plot.
package/docs/chart.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "binding": "angular",
5
5
  "catalog": {
6
6
  "group": "Data display",
7
- "summary": "Line, bar, area, pie and scatter charts."
7
+ "summary": "Line, bar, area, pie, range and scatter charts."
8
8
  },
9
9
  "axes": {
10
10
  "kind": [
@@ -12,6 +12,7 @@
12
12
  "area",
13
13
  "bar",
14
14
  "pie",
15
+ "range",
15
16
  "scatter"
16
17
  ],
17
18
  "size": [
@@ -71,6 +72,10 @@
71
72
  "linear",
72
73
  "log"
73
74
  ],
75
+ "extent": [
76
+ "zero",
77
+ "data"
78
+ ],
74
79
  "xType": [
75
80
  "category",
76
81
  "time",
@@ -482,7 +487,7 @@
482
487
  "type": "readonly ChartSeries[]",
483
488
  "defaultValue": "[]",
484
489
  "appliesTo": "slChart",
485
- "description": "What is drawn: kind, field, label, and how. Order is legend order and color order"
490
+ "description": "What is drawn: kind (line, area, bar, pie, scatter, range), field, label, and how. Order is legend order and color order"
486
491
  },
487
492
  {
488
493
  "name": "x",
@@ -519,6 +524,13 @@
519
524
  "appliesTo": "y",
520
525
  "description": "A logarithmic value axis"
521
526
  },
527
+ {
528
+ "name": "extent",
529
+ "type": "'zero' | 'data'",
530
+ "defaultValue": "zero with a bar or stacked series, else data",
531
+ "appliesTo": "y",
532
+ "description": "What the axis holds besides the data: zero, for a bar, or the data alone, for a line"
533
+ },
522
534
  {
523
535
  "name": "orientation",
524
536
  "type": "'vertical' | 'horizontal'",
@@ -554,6 +566,20 @@
554
566
  "appliesTo": "series",
555
567
  "description": "Dots on a line: none, the last point, or every point"
556
568
  },
569
+ {
570
+ "name": "lower, upper",
571
+ "type": "string",
572
+ "defaultValue": "—",
573
+ "appliesTo": "series",
574
+ "description": "A range series fills between two fields of each record; a record that lacks either leaves a gap"
575
+ },
576
+ {
577
+ "name": "of",
578
+ "type": "string",
579
+ "defaultValue": "—",
580
+ "appliesTo": "series",
581
+ "description": "The id of the line a range belongs to: the band takes its color and axis and is drawn under it"
582
+ },
557
583
  {
558
584
  "name": "annotations",
559
585
  "type": "readonly ChartAnnotation[]",
@@ -1151,6 +1177,14 @@
1151
1177
  "source": "<figure\n slChart\n recordKey=\"id\"\n title=\"Effort, impact and customers\"\n [data]=\"work\"\n [series]=\"bubbles\"\n></figure>\n",
1152
1178
  "verdict": "excerpt"
1153
1179
  },
1180
+ {
1181
+ "id": "range",
1182
+ "title": "A band around a line",
1183
+ "note": "A range series fills between two fields of each record, under the line it names with of, in that line’s color. One legend item hides the band, the tooltip reads one row with both bounds, and the table view lists both columns.",
1184
+ "language": "html",
1185
+ "source": "<figure slChart title=\"Forecast\" [data]=\"forecast\" [series]=\"forecastSeries\"></figure>\n",
1186
+ "verdict": "excerpt"
1187
+ },
1154
1188
  {
1155
1189
  "id": "annotations",
1156
1190
  "title": "Targets, ranges and events",
package/docs/chart.md CHANGED
@@ -1,7 +1,7 @@
1
1
  <!-- index: ./index.md -->
2
2
  # chart
3
3
 
4
- `data-ui="chart"` · Line, bar, area, pie and scatter charts.
4
+ `data-ui="chart"` · Line, bar, area, pie, range and scatter charts.
5
5
 
6
6
  ## Import
7
7
 
@@ -76,17 +76,20 @@ Excerpt — not a complete module
76
76
  | Name | Type | Default | Applies to | Description |
77
77
  | --- | --- | --- | --- | --- |
78
78
  | `data` | `readonly ChartRecord[]` | [] | slChart | One record per category or per point. Fields are named by x and by each series |
79
- | `series` | `readonly ChartSeries[]` | [] | slChart | What is drawn: kind, field, label, and how. Order is legend order and color order |
79
+ | `series` | `readonly ChartSeries[]` | [] | slChart | What is drawn: kind (line, area, bar, pie, scatter, range), field, label, and how. Order is legend order and color order |
80
80
  | `x` | `ChartXAxis` | — | slChart | The category field, and its type (category, time, value), label, format and extent |
81
81
  | `y` | `ChartYAxis \| [ChartYAxis, ChartYAxis]` | — | slChart | The value axis, or the start and end axes: label, format, scale, extent |
82
82
  | `min` | `number` | — | x, y | The lowest value the axis must hold. The data widens the extent, never narrows it |
83
83
  | `max` | `number` | — | x, y | The highest value the axis must hold |
84
84
  | `scale` | `'linear' \| 'log'` | linear | y | A logarithmic value axis |
85
+ | `extent` | `'zero' \| 'data'` | zero with a bar or stacked series, else data | y | What the axis holds besides the data: zero, for a bar, or the data alone, for a line |
85
86
  | `orientation` | `'vertical' \| 'horizontal'` | vertical | slChart | Which way categories run. Horizontal bars for a ranking with long names |
86
87
  | `stackMode` | `'normal' \| 'percent'` | normal | slChart | How series that share a stack add up: to a total, or to 100 % |
87
88
  | `curve` | `'linear' \| 'monotone' \| 'step'` | linear | series | How a line or an area passes through its points |
88
89
  | `stroke` | `'solid' \| 'dashed'` | solid | series | A dashed line for a reference |
89
90
  | `markers` | `'none' \| 'last' \| 'all'` | none | series | Dots on a line: none, the last point, or every point |
91
+ | `lower, upper` | `string` | — | series | A range series fills between two fields of each record; a record that lacks either leaves a gap |
92
+ | `of` | `string` | — | series | The id of the line a range belongs to: the band takes its color and axis and is drawn under it |
90
93
  | `annotations` | `readonly ChartAnnotation[]` | — | slChart | Lines and bands on either axis, labelled, in a tone. On the category axis a value names a category by its key or its x value; one that names none is not drawn |
91
94
  | `recordKey` | `string` | — | slChart | The field that names a record when x is a value axis, for points and selection |
92
95
  | `locale` | `string` | — | slChart | BCP 47, for every number and date; the language in force when absent |
@@ -149,7 +152,7 @@ Excerpt — not a complete module
149
152
 
150
153
  | Axis | Values | Default |
151
154
  | --- | --- | --- |
152
- | `kind` | `line`, `area`, `bar`, `pie`, `scatter` | — |
155
+ | `kind` | `line`, `area`, `bar`, `pie`, `range`, `scatter` | — |
153
156
  | `size` | `sm`, `md`, `lg` | `md` |
154
157
  | `orientation` | `vertical`, `horizontal` | `vertical` |
155
158
  | `stackMode` | `normal`, `percent` | `normal` |
@@ -162,6 +165,7 @@ Excerpt — not a complete module
162
165
  | `sort` | `none`, `asc`, `desc` | `none` |
163
166
  | `renderer` | `auto`, `svg`, `canvas` | `auto` |
164
167
  | `scale` | `linear`, `log` | — |
168
+ | `extent` | `zero`, `data` | — |
165
169
  | `xType` | `category`, `time`, `value` | — |
166
170
  | `tone` | `neutral`, `accent`, `secondary`, `info`, `success`, `warning`, `danger` | — |
167
171
  | `slot` | `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8` | — |
package/docs/index.md CHANGED
@@ -57,7 +57,7 @@ Each family is documented in `./<family>.md`.
57
57
  - avatar-group: Overlapping avatars with an overflow count.
58
58
  - badge: Short label or count attached to an element.
59
59
  - carousel: Slides that scroll one page at a time.
60
- - chart: Line, bar, area, pie and scatter charts.
60
+ - chart: Line, bar, area, pie, range and scatter charts.
61
61
  - code-block: Highlighted source code with copy and line limits.
62
62
  - column-manager: Shows, hides, orders and pins table columns.
63
63
  - data-grid: Table that sorts, filters and selects records.
package/docs/table.json CHANGED
@@ -621,6 +621,13 @@
621
621
  "appliesTo": "slTableRow",
622
622
  "description": "The record open elsewhere on the page, a detail pane beside the table, written as aria-current"
623
623
  },
624
+ {
625
+ "name": "muted",
626
+ "type": "boolean",
627
+ "defaultValue": "false",
628
+ "appliesTo": "slTableRow",
629
+ "description": "Draws the row in the muted ink, for a record that is no longer active; the row stays selectable and pressable"
630
+ },
624
631
  {
625
632
  "name": "interactive",
626
633
  "type": "boolean",
package/docs/table.md CHANGED
@@ -233,6 +233,7 @@ export class TableBasic {
233
233
  | `disabled` | `boolean` | false | slTableRow | A record the reader may not choose; it leaves the set the header covers |
234
234
  | `rowIndex` | `number` | — | slTableRow | The record position in the whole set, written as aria-rowindex |
235
235
  | `current` | `boolean` | false | slTableRow | The record open elsewhere on the page, a detail pane beside the table, written as aria-current |
236
+ | `muted` | `boolean` | false | slTableRow | Draws the row in the muted ink, for a record that is no longer active; the row stays selectable and pressable |
236
237
  | `interactive` | `boolean` | false | slTableRow | Paints the row as a thing the pointer presses; stated beside (action) |
237
238
  | `(action)` | `MouseEvent` | — | slTableRow | A click anywhere in the row that lands on no control of its own; the first link or button in the row is the keyboard way in |
238
239
  | `column` | `string` | — | slTableColumnHeader, slTableSort | The column key the sort descriptor names |