@slotted/angular 0.1.0-beta.29 → 0.1.0-beta.30
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/docs/AGENTS.snippet.md +1 -1
- package/docs/accordion.json +5 -5
- package/docs/accordion.md +12 -12
- package/docs/action-bar.json +20 -20
- package/docs/action-bar.md +28 -28
- package/docs/action-sheet.json +4 -4
- package/docs/action-sheet.md +12 -12
- package/docs/alert.json +10 -10
- package/docs/alert.md +16 -16
- package/docs/app-shell.examples.md +7 -7
- package/docs/app-shell.json +13 -13
- package/docs/app-shell.md +3 -3
- package/docs/avatar-group.json +1 -1
- package/docs/avatar-group.md +1 -1
- package/docs/avatar.json +10 -10
- package/docs/avatar.md +9 -9
- package/docs/badge.json +3 -3
- package/docs/badge.md +3 -3
- package/docs/breadcrumb.json +2 -2
- package/docs/breadcrumb.md +2 -2
- package/docs/button-group.json +1 -1
- package/docs/button-group.md +1 -1
- package/docs/button.json +11 -11
- package/docs/button.md +7 -7
- package/docs/calendar.json +4 -4
- package/docs/calendar.md +3 -3
- package/docs/card.json +2 -2
- package/docs/card.md +2 -2
- package/docs/carousel.json +10 -10
- package/docs/carousel.md +11 -11
- package/docs/chart.examples.md +32 -32
- package/docs/chart.json +33 -33
- package/docs/chart.md +4 -4
- package/docs/checkbox-group.examples.md +13 -13
- package/docs/checkbox-group.json +7 -7
- package/docs/checkbox-group.md +2 -2
- package/docs/checkbox.examples.md +7 -7
- package/docs/checkbox.json +6 -6
- package/docs/checkbox.md +3 -3
- package/docs/code-block.json +1 -1
- package/docs/code-block.md +1 -1
- package/docs/collapsible.json +11 -11
- package/docs/collapsible.md +19 -19
- package/docs/color-picker.json +26 -26
- package/docs/color-picker.md +16 -16
- package/docs/combobox.json +2 -2
- package/docs/combobox.md +2 -2
- package/docs/context-menu.json +1 -1
- package/docs/context-menu.md +1 -1
- package/docs/currency-field.examples.md +3 -3
- package/docs/currency-field.json +6 -6
- package/docs/currency-field.md +4 -4
- package/docs/dashboard-grid.json +1 -1
- package/docs/data-grid.examples.md +1 -1
- package/docs/data-grid.json +2 -2
- package/docs/data-grid.props.md +1 -1
- package/docs/date-field.json +3 -3
- package/docs/date-field.md +5 -5
- package/docs/date-picker.json +1 -1
- package/docs/date-range-picker.json +1 -1
- package/docs/datetime-field.json +4 -4
- package/docs/datetime-field.md +9 -9
- package/docs/datetime-picker.json +1 -1
- package/docs/datetime-range-picker.examples.md +3 -3
- package/docs/datetime-range-picker.json +4 -4
- package/docs/datetime-range-picker.md +2 -2
- package/docs/description-list.json +5 -5
- package/docs/description-list.md +4 -4
- package/docs/detail-panel.json +10 -10
- package/docs/detail-panel.md +12 -12
- package/docs/dialog.examples.md +5 -5
- package/docs/dialog.json +10 -10
- package/docs/dialog.md +2 -2
- package/docs/dialog.props.md +2 -2
- package/docs/drawer.examples.md +13 -13
- package/docs/drawer.json +6 -6
- package/docs/event-calendar.examples.md +3 -3
- package/docs/event-calendar.json +5 -5
- package/docs/event-calendar.md +2 -2
- package/docs/field-group.json +6 -6
- package/docs/field-group.md +11 -11
- package/docs/field.examples.md +3 -3
- package/docs/field.json +4 -4
- package/docs/field.md +1 -1
- package/docs/form.json +8 -8
- package/docs/form.md +12 -12
- package/docs/fullscreen.json +4 -4
- package/docs/fullscreen.md +7 -7
- package/docs/guidelines/async-feedback.md +2 -2
- package/docs/guidelines/builders.md +1 -1
- package/docs/guidelines/composition.md +4 -4
- package/docs/guidelines/conversations.md +1 -1
- package/docs/guidelines/index.md +2 -2
- package/docs/guidelines/layout-alignment.md +5 -5
- package/docs/guidelines/overviews.md +3 -3
- package/docs/guidelines/own-elements.md +7 -7
- package/docs/guidelines/record-pages.md +1 -1
- package/docs/highlight.json +9 -9
- package/docs/highlight.md +14 -14
- package/docs/icon.json +2 -2
- package/docs/icon.md +2 -2
- package/docs/image.json +3 -3
- package/docs/image.md +3 -3
- package/docs/import-export-center.json +23 -23
- package/docs/import-export-center.md +17 -17
- package/docs/inline-message.json +15 -15
- package/docs/inline-message.md +22 -22
- package/docs/inline.json +1 -1
- package/docs/inline.md +1 -1
- package/docs/kbd.json +2 -2
- package/docs/kbd.md +2 -2
- package/docs/link.json +6 -6
- package/docs/link.md +6 -6
- package/docs/list-item.json +1 -1
- package/docs/list-item.md +1 -1
- package/docs/list.json +1 -1
- package/docs/listbox.json +1 -1
- package/docs/listbox.md +1 -1
- package/docs/loading-overlay.json +3 -3
- package/docs/loading-overlay.md +3 -3
- package/docs/message-scroller.json +1 -1
- package/docs/message-scroller.md +1 -1
- package/docs/message.json +11 -11
- package/docs/message.md +17 -17
- package/docs/multi-select.json +1 -1
- package/docs/notification-center.json +16 -16
- package/docs/notification-center.md +18 -22
- package/docs/number-field.examples.md +3 -3
- package/docs/number-field.json +3 -3
- package/docs/otp-input.json +10 -10
- package/docs/otp-input.md +13 -13
- package/docs/page-header.json +9 -9
- package/docs/page-header.md +20 -22
- package/docs/pagination.json +2 -2
- package/docs/pagination.md +1 -1
- package/docs/popover.examples.md +1 -1
- package/docs/popover.json +3 -3
- package/docs/popover.md +1 -1
- package/docs/progress-indicator.json +4 -4
- package/docs/progress-indicator.md +4 -4
- package/docs/prompt-composer.json +4 -4
- package/docs/prompt-composer.md +5 -5
- package/docs/prose.json +1 -1
- package/docs/prose.md +1 -1
- package/docs/radio-group.examples.md +19 -19
- package/docs/radio-group.json +12 -12
- package/docs/radio-group.md +3 -3
- package/docs/rating.json +23 -23
- package/docs/rating.md +25 -34
- package/docs/result-state.json +12 -12
- package/docs/result-state.md +17 -17
- package/docs/saved-views.json +1 -1
- package/docs/scroll-area.json +5 -5
- package/docs/scroll-area.md +6 -6
- package/docs/section.json +6 -6
- package/docs/section.md +12 -12
- package/docs/segmented-control.json +14 -14
- package/docs/segmented-control.md +32 -32
- package/docs/skeleton.json +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/skills/build-own-element/SKILL.md +3 -3
- package/docs/skills/compose-screen/SKILL.md +2 -2
- package/docs/skills/index.md +2 -2
- package/docs/skills/review-screen/SKILL.md +3 -3
- package/docs/skills/theme-app/SKILL.md +9 -9
- package/docs/skills/waiting-states/SKILL.md +1 -1
- package/docs/slider.json +8 -8
- package/docs/slider.md +12 -12
- package/docs/sparkline.json +8 -8
- package/docs/sparkline.md +6 -6
- package/docs/split-button.json +11 -11
- package/docs/split-button.md +25 -27
- package/docs/stack.json +1 -1
- package/docs/stack.md +1 -1
- package/docs/stat-card.json +3 -3
- package/docs/stat-card.md +2 -2
- package/docs/status-indicator.json +8 -8
- package/docs/status-indicator.md +5 -5
- package/docs/stepper.json +4 -4
- package/docs/stepper.md +4 -4
- package/docs/switch.json +5 -5
- package/docs/switch.md +7 -7
- package/docs/table-of-contents.json +11 -11
- package/docs/table-of-contents.md +12 -12
- package/docs/table.examples.md +1 -1
- package/docs/table.json +1 -1
- package/docs/tabs.json +1 -1
- package/docs/tabs.md +1 -1
- package/docs/tag.json +17 -17
- package/docs/tag.md +14 -14
- package/docs/tags-input.json +1 -1
- package/docs/tags-input.md +1 -1
- package/docs/text-field.examples.md +6 -6
- package/docs/text-field.json +4 -4
- package/docs/textarea.examples.md +7 -7
- package/docs/textarea.json +3 -3
- package/docs/time-field.json +3 -3
- package/docs/time-field.md +6 -6
- package/docs/time-picker.json +5 -5
- package/docs/time-picker.md +6 -6
- package/docs/time-range-picker.examples.md +5 -5
- package/docs/time-range-picker.json +5 -5
- package/docs/time-range-picker.md +1 -1
- package/docs/toast.json +6 -6
- package/docs/toast.md +6 -6
- package/docs/toggle-group.json +12 -12
- package/docs/toggle-group.md +28 -28
- package/docs/toggle.json +8 -8
- package/docs/toggle.md +7 -7
- package/docs/tokens.md +15 -15
- package/docs/toolbar.json +11 -11
- package/docs/toolbar.md +23 -23
- package/docs/tooltip.json +3 -3
- package/docs/tooltip.md +3 -3
- package/docs/top-navigation.examples.md +11 -15
- package/docs/top-navigation.json +9 -9
- package/docs/top-navigation.md +7 -7
- package/docs/tour.json +9 -9
- package/docs/tour.md +6 -6
- package/docs/typography.json +2 -2
- package/docs/typography.md +2 -2
- package/docs/upload.examples.md +3 -3
- package/docs/upload.json +9 -9
- package/docs/upload.md +4 -4
- package/fesm2022/slotted-angular-alert.mjs +2 -2
- package/fesm2022/slotted-angular-alert.mjs.map +1 -1
- package/fesm2022/slotted-angular-app-shell.mjs +10 -10
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar-group.mjs +4 -4
- package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +3 -3
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +1 -1
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/slotted-angular-button-group.mjs +1 -1
- package/fesm2022/slotted-angular-button-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +2 -2
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-card.mjs +1 -1
- package/fesm2022/slotted-angular-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +2 -2
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-code-block.mjs +1 -1
- package/fesm2022/slotted-angular-code-block.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-color-picker.mjs +6 -6
- package/fesm2022/slotted-angular-color-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +3 -1
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
- package/fesm2022/slotted-angular-currency-field.mjs +2 -2
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +6 -6
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-description-list.mjs +3 -3
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-dialog.mjs +3 -3
- package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +1 -1
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-event-calendar.mjs +3 -3
- package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-field.mjs +2 -2
- package/fesm2022/slotted-angular-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-form.mjs +6 -6
- package/fesm2022/slotted-angular-form.mjs.map +1 -1
- package/fesm2022/slotted-angular-grid.mjs +2 -2
- package/fesm2022/slotted-angular-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-highlight.mjs +1 -1
- package/fesm2022/slotted-angular-highlight.mjs.map +1 -1
- package/fesm2022/slotted-angular-icon.mjs +3 -3
- package/fesm2022/slotted-angular-icon.mjs.map +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs +10 -10
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +4 -4
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline.mjs +3 -3
- package/fesm2022/slotted-angular-inline.mjs.map +1 -1
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +1 -1
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +2 -2
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-loading-overlay.mjs +3 -3
- package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
- package/fesm2022/slotted-angular-menu.mjs +2 -2
- package/fesm2022/slotted-angular-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +3 -3
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-number-field.mjs +1 -1
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-popover.mjs +2 -2
- package/fesm2022/slotted-angular-popover.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +2 -2
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-radio-group.mjs +2 -2
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +5 -5
- package/fesm2022/slotted-angular-rating.mjs.map +1 -1
- package/fesm2022/slotted-angular-result-state.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-slider.mjs +3 -3
- package/fesm2022/slotted-angular-slider.mjs.map +1 -1
- package/fesm2022/slotted-angular-stack.mjs +2 -2
- package/fesm2022/slotted-angular-stack.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-switch.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +2 -2
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tabs.mjs.map +1 -1
- package/fesm2022/slotted-angular-tag.mjs +1 -1
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-theme.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-range-picker.mjs +6 -6
- package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-toast.mjs +2 -2
- package/fesm2022/slotted-angular-toast.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +3 -3
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-typography.mjs +1 -1
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +2 -2
- package/fesm2022/slotted-angular-upload.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +6 -6
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +15 -3
- package/types/slotted-angular-alert.d.ts +3 -3
- package/types/slotted-angular-app-shell.d.ts +4 -4
- package/types/slotted-angular-avatar-group.d.ts +3 -3
- package/types/slotted-angular-avatar.d.ts +6 -6
- package/types/slotted-angular-badge.d.ts +3 -3
- package/types/slotted-angular-breadcrumb.d.ts +1 -1
- package/types/slotted-angular-button-group.d.ts +1 -1
- package/types/slotted-angular-button.d.ts +2 -2
- package/types/slotted-angular-card.d.ts +1 -1
- package/types/slotted-angular-chart.d.ts +2 -2
- package/types/slotted-angular-checkbox.d.ts +1 -1
- package/types/slotted-angular-code-block.d.ts +1 -1
- package/types/slotted-angular-collapsible.d.ts +1 -1
- package/types/slotted-angular-color-picker.d.ts +6 -6
- package/types/slotted-angular-column-manager.d.ts +1 -1
- package/types/slotted-angular-column-manager.d.ts.map +1 -1
- package/types/slotted-angular-currency-field.d.ts +1 -1
- package/types/slotted-angular-data-grid.d.ts +1 -1
- package/types/slotted-angular-datetime-range-picker.d.ts +1 -1
- package/types/slotted-angular-description-list.d.ts +1 -1
- package/types/slotted-angular-field.d.ts +2 -2
- package/types/slotted-angular-form.d.ts +1 -1
- package/types/slotted-angular-highlight.d.ts +1 -1
- package/types/slotted-angular-icon.d.ts +2 -2
- package/types/slotted-angular-import-export-center.d.ts +9 -9
- package/types/slotted-angular-inline-message.d.ts +3 -3
- package/types/slotted-angular-inline.d.ts +1 -1
- package/types/slotted-angular-kbd.d.ts +1 -1
- package/types/slotted-angular-list.d.ts +1 -1
- package/types/slotted-angular-listbox.d.ts +2 -2
- package/types/slotted-angular-loading-overlay.d.ts +3 -3
- package/types/slotted-angular-menu.d.ts +1 -1
- package/types/slotted-angular-message-scroller.d.ts +1 -1
- package/types/slotted-angular-notification-center.d.ts +4 -4
- package/types/slotted-angular-otp-input.d.ts +1 -1
- package/types/slotted-angular-progress-indicator.d.ts +2 -2
- package/types/slotted-angular-radio-group.d.ts +2 -2
- package/types/slotted-angular-rating.d.ts +2 -2
- package/types/slotted-angular-result-state.d.ts +1 -1
- package/types/slotted-angular-segmented-control.d.ts +2 -2
- package/types/slotted-angular-status-indicator.d.ts +2 -2
- package/types/slotted-angular-switch.d.ts +1 -1
- package/types/slotted-angular-table.d.ts +1 -1
- package/types/slotted-angular-tabs.d.ts +1 -1
- package/types/slotted-angular-tag.d.ts +3 -3
- package/types/slotted-angular-tags-input.d.ts +1 -1
- package/types/slotted-angular-theme.d.ts +1 -1
- package/types/slotted-angular-time-range-picker.d.ts +1 -1
- package/types/slotted-angular-toast.d.ts +4 -4
- package/types/slotted-angular-toggle-group.d.ts +1 -1
- package/types/slotted-angular-toggle.d.ts +1 -1
- package/types/slotted-angular-tour.d.ts +2 -2
- package/types/slotted-angular-wizard.d.ts +1 -1
package/docs/chart.examples.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
### Lines for a trend
|
|
9
9
|
|
|
10
|
-
Revenue and cost with a marker on the last point, and the target dashed in the neutral tone so it reads as a reference before its
|
|
10
|
+
Revenue and cost with a marker on the last point, and the target dashed in the neutral tone so it reads as a reference before its color does.
|
|
11
11
|
|
|
12
12
|
Excerpt — not a complete module
|
|
13
13
|
|
|
@@ -22,7 +22,7 @@ Three channels stacked with a monotone curve: the wash sits under each line and
|
|
|
22
22
|
Excerpt — not a complete module
|
|
23
23
|
|
|
24
24
|
```html
|
|
25
|
-
<figure slChart title="
|
|
25
|
+
<figure slChart title="Sessions by channel" [data]="sessions" [series]="stackedAreas"></figure>
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
### Grouped bars
|
|
@@ -32,7 +32,7 @@ Three channels side by side in each month; the band under the pointer lights the
|
|
|
32
32
|
Excerpt — not a complete module
|
|
33
33
|
|
|
34
34
|
```html
|
|
35
|
-
<figure slChart title="
|
|
35
|
+
<figure slChart title="Orders by channel" [data]="orders" [series]="channels"></figure>
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
### A ranking reads across
|
|
@@ -45,7 +45,7 @@ Excerpt — not a complete module
|
|
|
45
45
|
<figure
|
|
46
46
|
slChart
|
|
47
47
|
orientation="horizontal"
|
|
48
|
-
title="
|
|
48
|
+
title="Revenue by region"
|
|
49
49
|
[data]="regions"
|
|
50
50
|
[series]="ranking"
|
|
51
51
|
></figure>
|
|
@@ -58,7 +58,7 @@ Series that share a stack id pile up; the tooltip lists each and closes with the
|
|
|
58
58
|
Excerpt — not a complete module
|
|
59
59
|
|
|
60
60
|
```html
|
|
61
|
-
<figure slChart title="
|
|
61
|
+
<figure slChart title="Orders by channel" [data]="orders" [series]="stackedBars"></figure>
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
### Shares of a whole
|
|
@@ -71,7 +71,7 @@ Excerpt — not a complete module
|
|
|
71
71
|
<figure
|
|
72
72
|
slChart
|
|
73
73
|
stackMode="percent"
|
|
74
|
-
title="
|
|
74
|
+
title="Share by channel"
|
|
75
75
|
[data]="orders"
|
|
76
76
|
[series]="stackedAreas"
|
|
77
77
|
></figure>
|
|
@@ -96,7 +96,7 @@ Excerpt — not a complete module
|
|
|
96
96
|
```html
|
|
97
97
|
<figure
|
|
98
98
|
slChart
|
|
99
|
-
title="
|
|
99
|
+
title="Orders and margin"
|
|
100
100
|
[data]="monthly"
|
|
101
101
|
[series]="ordersAndMargin"
|
|
102
102
|
[y]="[orders, margin]"
|
|
@@ -112,7 +112,7 @@ Excerpt — not a complete module
|
|
|
112
112
|
```html
|
|
113
113
|
<figure
|
|
114
114
|
slChart
|
|
115
|
-
title="
|
|
115
|
+
title="Daily sessions"
|
|
116
116
|
[data]="daily"
|
|
117
117
|
[series]="sessions"
|
|
118
118
|
[x]="{ field: 'day', type: 'time' }"
|
|
@@ -128,7 +128,7 @@ Excerpt — not a complete module
|
|
|
128
128
|
```html
|
|
129
129
|
<figure
|
|
130
130
|
slChart
|
|
131
|
-
title="
|
|
131
|
+
title="Active users"
|
|
132
132
|
[data]="users"
|
|
133
133
|
[series]="series"
|
|
134
134
|
[y]="{ scale: 'log' }"
|
|
@@ -144,7 +144,7 @@ Excerpt — not a complete module
|
|
|
144
144
|
```html
|
|
145
145
|
<figure
|
|
146
146
|
slChart
|
|
147
|
-
title="
|
|
147
|
+
title="Revenue by region"
|
|
148
148
|
[data]="regions"
|
|
149
149
|
[series]="pie"
|
|
150
150
|
[x]="{ field: 'region' }"
|
|
@@ -153,7 +153,7 @@ Excerpt — not a complete module
|
|
|
153
153
|
|
|
154
154
|
### A donut with the total inside
|
|
155
155
|
|
|
156
|
-
innerRadius opens the middle and the center holds the total; a slChartCenter template replaces it, here with the resolution rate. slotField and toneField give each slice the slot or tone its record names, so a category keeps the
|
|
156
|
+
innerRadius opens the middle and the center holds the total; a slChartCenter template replaces it, here with the resolution rate. slotField and toneField give each slice the slot or tone its record names, so a category keeps the color it has everywhere else; a slice that names none takes the next free slot.
|
|
157
157
|
|
|
158
158
|
Excerpt — not a complete module
|
|
159
159
|
|
|
@@ -176,7 +176,7 @@ Excerpt — not a complete module
|
|
|
176
176
|
<figure
|
|
177
177
|
slChart
|
|
178
178
|
recordKey="id"
|
|
179
|
-
title="
|
|
179
|
+
title="Effort and impact"
|
|
180
180
|
[data]="work"
|
|
181
181
|
[series]="groups"
|
|
182
182
|
[x]="effort"
|
|
@@ -193,7 +193,7 @@ Excerpt — not a complete module
|
|
|
193
193
|
<figure
|
|
194
194
|
slChart
|
|
195
195
|
recordKey="id"
|
|
196
|
-
title="
|
|
196
|
+
title="Effort, impact and customers"
|
|
197
197
|
[data]="work"
|
|
198
198
|
[series]="bubbles"
|
|
199
199
|
></figure>
|
|
@@ -224,7 +224,7 @@ Excerpt — not a complete module
|
|
|
224
224
|
```html
|
|
225
225
|
<figure
|
|
226
226
|
slChart
|
|
227
|
-
title="
|
|
227
|
+
title="Acquisition channels"
|
|
228
228
|
[data]="sessions"
|
|
229
229
|
[series]="channels"
|
|
230
230
|
[(hidden)]="hidden"
|
|
@@ -241,7 +241,7 @@ Excerpt — not a complete module
|
|
|
241
241
|
<figure
|
|
242
242
|
slChart
|
|
243
243
|
legendValues
|
|
244
|
-
title="
|
|
244
|
+
title="Acquisition channels"
|
|
245
245
|
[data]="sessions"
|
|
246
246
|
[series]="channels"
|
|
247
247
|
></figure>
|
|
@@ -307,7 +307,7 @@ Excerpt — not a complete module
|
|
|
307
307
|
<figure
|
|
308
308
|
slChart
|
|
309
309
|
zoomable
|
|
310
|
-
title="
|
|
310
|
+
title="Daily sessions"
|
|
311
311
|
[data]="daily"
|
|
312
312
|
[series]="sessions"
|
|
313
313
|
[(zoom)]="zoom"
|
|
@@ -323,12 +323,12 @@ Excerpt — not a complete module
|
|
|
323
323
|
```html
|
|
324
324
|
<figure
|
|
325
325
|
slChart
|
|
326
|
-
title="
|
|
326
|
+
title="Revenue"
|
|
327
327
|
[data]="monthly"
|
|
328
328
|
[series]="revenue"
|
|
329
329
|
[(activePoint)]="point"
|
|
330
330
|
></figure>
|
|
331
|
-
<figure slChart title="
|
|
331
|
+
<figure slChart title="Orders" [data]="monthly" [series]="orders" [(activePoint)]="point"></figure>
|
|
332
332
|
```
|
|
333
333
|
|
|
334
334
|
### Three heights
|
|
@@ -345,7 +345,7 @@ Excerpt — not a complete module
|
|
|
345
345
|
|
|
346
346
|
### More series than slots
|
|
347
347
|
|
|
348
|
-
Eleven channels over eight
|
|
348
|
+
Eleven channels over eight color slots: the first eight take the palette, the rest take the overflow neutral, and the legend says which is which.
|
|
349
349
|
|
|
350
350
|
Excerpt — not a complete module
|
|
351
351
|
|
|
@@ -378,7 +378,7 @@ Excerpt — not a complete module
|
|
|
378
378
|
|
|
379
379
|
### Missing values stay missing
|
|
380
380
|
|
|
381
|
-
A null breaks the line on the left; connectNulls bridges it on the right, for a series where the gap is a sampling
|
|
381
|
+
A null breaks the line on the left; connectNulls bridges it on the right, for a series where the gap is a sampling artifact rather than a fact.
|
|
382
382
|
|
|
383
383
|
Excerpt — not a complete module
|
|
384
384
|
|
|
@@ -409,12 +409,12 @@ Excerpt — not a complete module
|
|
|
409
409
|
|
|
410
410
|
### Texture as a second channel
|
|
411
411
|
|
|
412
|
-
texture adds a pattern per slot, so a series is told apart in print, in
|
|
412
|
+
texture adds a pattern per slot, so a series is told apart in print, in grayscale or by a reader who does not see the difference between two hues.
|
|
413
413
|
|
|
414
414
|
Excerpt — not a complete module
|
|
415
415
|
|
|
416
416
|
```html
|
|
417
|
-
<figure slChart texture title="
|
|
417
|
+
<figure slChart texture title="Orders by channel" [data]="orders" [series]="channels"></figure>
|
|
418
418
|
```
|
|
419
419
|
|
|
420
420
|
### Waiting, in the shape of what is coming
|
|
@@ -426,7 +426,7 @@ Excerpt — not a complete module
|
|
|
426
426
|
```html
|
|
427
427
|
<figure
|
|
428
428
|
slChart
|
|
429
|
-
title="
|
|
429
|
+
title="Orders by channel"
|
|
430
430
|
[data]="orders()"
|
|
431
431
|
[loading]="pending()"
|
|
432
432
|
[series]="channels"
|
|
@@ -468,7 +468,7 @@ Excerpt — not a complete module
|
|
|
468
468
|
```html
|
|
469
469
|
<figure
|
|
470
470
|
slChart
|
|
471
|
-
title="
|
|
471
|
+
title="Conversion"
|
|
472
472
|
[data]="monthly"
|
|
473
473
|
[error]="failed()"
|
|
474
474
|
[series]="conversion"
|
|
@@ -488,11 +488,11 @@ Excerpt — not a complete module
|
|
|
488
488
|
slChart
|
|
489
489
|
size="sm"
|
|
490
490
|
variant="card"
|
|
491
|
-
title="
|
|
491
|
+
title="Revenue"
|
|
492
492
|
[data]="monthly"
|
|
493
493
|
[series]="revenue"
|
|
494
494
|
></figure>
|
|
495
|
-
<figure slChart loading size="sm" variant="card" title="
|
|
495
|
+
<figure slChart loading size="sm" variant="card" title="Orders" [series]="channels"></figure>
|
|
496
496
|
</div>
|
|
497
497
|
```
|
|
498
498
|
|
|
@@ -508,12 +508,12 @@ Excerpt — not a complete module
|
|
|
508
508
|
|
|
509
509
|
<section slSection>
|
|
510
510
|
<div slSectionHeader>
|
|
511
|
-
<div slSectionTitle><h2 slSectionHeading>
|
|
511
|
+
<div slSectionTitle><h2 slSectionHeading>Revenue</h2></div>
|
|
512
512
|
</div>
|
|
513
513
|
<div slSectionBody>
|
|
514
514
|
<figure
|
|
515
515
|
slChart
|
|
516
|
-
aria-label="
|
|
516
|
+
aria-label="Revenue, last 12 months"
|
|
517
517
|
[data]="monthly"
|
|
518
518
|
[series]="revenue"
|
|
519
519
|
></figure>
|
|
@@ -545,9 +545,9 @@ Excerpt — not a complete module
|
|
|
545
545
|
</figure>
|
|
546
546
|
```
|
|
547
547
|
|
|
548
|
-
###
|
|
548
|
+
### Color from the design system
|
|
549
549
|
|
|
550
|
-
categorical tells series apart, sequential orders them by one hue for ranked data, focus draws the first series in
|
|
550
|
+
categorical tells series apart, sequential orders them by one hue for ranked data, focus draws the first series in color and the rest in neutral. slot and tone pin a series to a color.
|
|
551
551
|
|
|
552
552
|
Excerpt — not a complete module
|
|
553
553
|
|
|
@@ -566,8 +566,8 @@ Excerpt — not a complete module
|
|
|
566
566
|
```html
|
|
567
567
|
<figure
|
|
568
568
|
slChart
|
|
569
|
-
help="
|
|
570
|
-
title="
|
|
569
|
+
help="Revenue recognized in the month, excluding taxes."
|
|
570
|
+
title="Revenue"
|
|
571
571
|
[data]="monthly"
|
|
572
572
|
[series]="revenue"
|
|
573
573
|
></figure>
|
package/docs/chart.json
CHANGED
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
"part": "legend-marker",
|
|
323
323
|
"element": "span",
|
|
324
324
|
"required": false,
|
|
325
|
-
"purpose": "The series’ mark in its
|
|
325
|
+
"purpose": "The series’ mark in its color and shape: a line, a bar or a dot, dashed when the series is."
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
328
|
"part": "legend-label",
|
|
@@ -482,7 +482,7 @@
|
|
|
482
482
|
"type": "readonly ChartSeries[]",
|
|
483
483
|
"defaultValue": "[]",
|
|
484
484
|
"appliesTo": "slChart",
|
|
485
|
-
"description": "What is drawn: kind, field, label, and how. Order is legend order and
|
|
485
|
+
"description": "What is drawn: kind, field, label, and how. Order is legend order and color order"
|
|
486
486
|
},
|
|
487
487
|
{
|
|
488
488
|
"name": "x",
|
|
@@ -643,7 +643,7 @@
|
|
|
643
643
|
"type": "boolean",
|
|
644
644
|
"defaultValue": "false",
|
|
645
645
|
"appliesTo": "slChart",
|
|
646
|
-
"description": "A pattern per slot, as a second channel beside
|
|
646
|
+
"description": "A pattern per slot, as a second channel beside color"
|
|
647
647
|
},
|
|
648
648
|
{
|
|
649
649
|
"name": "renderer",
|
|
@@ -914,8 +914,8 @@
|
|
|
914
914
|
"Inside the plot the keyboard follows an adaptation of the APG Grid pattern: Left and Right move along the categories, Up and Down between series, Home and End to the ends, Page keys by a tenth; Enter selects, + − and 0 zoom, Escape clears. The tooltip is aria-hidden, and a polite live region says the point reached — only the last one, so holding an arrow does not queue twelve sentences.",
|
|
915
915
|
"The legend is a toolbar of toggle buttons with a roving tab stop: aria-pressed says whether a series is drawn, Enter hides it, Shift+Enter shows it alone, and the live region confirms the change.",
|
|
916
916
|
"Every chart has a table view with the same numbers in their formats, reachable from the toolbar or the menu; it is the complete reading for anyone the drawing does not serve.",
|
|
917
|
-
"
|
|
918
|
-
"The eight slots of the data scale keep adjacent
|
|
917
|
+
"Color is never the only channel: series differ in stroke and marker shape, texture adds a pattern per slot, and under forced colors the drawing is redrawn in system colors with the legend markers kept by mask.",
|
|
918
|
+
"The eight slots of the data scale keep adjacent colors apart under simulated protanopia and deuteranopia in every scheme, and each clears 3:1 against the surface."
|
|
919
919
|
]
|
|
920
920
|
}
|
|
921
921
|
},
|
|
@@ -1042,7 +1042,7 @@
|
|
|
1042
1042
|
{
|
|
1043
1043
|
"id": "line",
|
|
1044
1044
|
"title": "Lines for a trend",
|
|
1045
|
-
"note": "Revenue and cost with a marker on the last point, and the target dashed in the neutral tone so it reads as a reference before its
|
|
1045
|
+
"note": "Revenue and cost with a marker on the last point, and the target dashed in the neutral tone so it reads as a reference before its color does.",
|
|
1046
1046
|
"language": "html",
|
|
1047
1047
|
"source": "<figure slChart title=\"Receita e custo\" [data]=\"monthly\" [series]=\"series\" [x]=\"x\" [y]=\"y\"></figure>\n",
|
|
1048
1048
|
"verdict": "excerpt"
|
|
@@ -1052,7 +1052,7 @@
|
|
|
1052
1052
|
"title": "Areas, stacked and smoothed",
|
|
1053
1053
|
"note": "Three channels stacked with a monotone curve: the wash sits under each line and the tooltip adds the stack’s total.",
|
|
1054
1054
|
"language": "html",
|
|
1055
|
-
"source": "<figure slChart title=\"
|
|
1055
|
+
"source": "<figure slChart title=\"Sessions by channel\" [data]=\"sessions\" [series]=\"stackedAreas\"></figure>\n",
|
|
1056
1056
|
"verdict": "excerpt"
|
|
1057
1057
|
},
|
|
1058
1058
|
{
|
|
@@ -1060,7 +1060,7 @@
|
|
|
1060
1060
|
"title": "Grouped bars",
|
|
1061
1061
|
"note": "Three channels side by side in each month; the band under the pointer lights the whole category, not one bar.",
|
|
1062
1062
|
"language": "html",
|
|
1063
|
-
"source": "<figure slChart title=\"
|
|
1063
|
+
"source": "<figure slChart title=\"Orders by channel\" [data]=\"orders\" [series]=\"channels\"></figure>\n",
|
|
1064
1064
|
"verdict": "excerpt"
|
|
1065
1065
|
},
|
|
1066
1066
|
{
|
|
@@ -1068,7 +1068,7 @@
|
|
|
1068
1068
|
"title": "A ranking reads across",
|
|
1069
1069
|
"note": "Horizontal bars with value labels: long category names get the room a vertical axis cannot give them.",
|
|
1070
1070
|
"language": "html",
|
|
1071
|
-
"source": "<figure\n slChart\n orientation=\"horizontal\"\n title=\"
|
|
1071
|
+
"source": "<figure\n slChart\n orientation=\"horizontal\"\n title=\"Revenue by region\"\n [data]=\"regions\"\n [series]=\"ranking\"\n></figure>\n",
|
|
1072
1072
|
"verdict": "excerpt"
|
|
1073
1073
|
},
|
|
1074
1074
|
{
|
|
@@ -1076,7 +1076,7 @@
|
|
|
1076
1076
|
"title": "Bars stacked into a total",
|
|
1077
1077
|
"note": "Series that share a stack id pile up; the tooltip lists each and closes with the total of the pile.",
|
|
1078
1078
|
"language": "html",
|
|
1079
|
-
"source": "<figure slChart title=\"
|
|
1079
|
+
"source": "<figure slChart title=\"Orders by channel\" [data]=\"orders\" [series]=\"stackedBars\"></figure>\n",
|
|
1080
1080
|
"verdict": "excerpt"
|
|
1081
1081
|
},
|
|
1082
1082
|
{
|
|
@@ -1084,7 +1084,7 @@
|
|
|
1084
1084
|
"title": "Shares of a whole",
|
|
1085
1085
|
"note": "stackMode=\"percent\" draws each month as 100 %, so a channel growing in share reads even when the total falls.",
|
|
1086
1086
|
"language": "html",
|
|
1087
|
-
"source": "<figure\n slChart\n stackMode=\"percent\"\n title=\"
|
|
1087
|
+
"source": "<figure\n slChart\n stackMode=\"percent\"\n title=\"Share by channel\"\n [data]=\"orders\"\n [series]=\"stackedAreas\"\n></figure>\n",
|
|
1088
1088
|
"verdict": "excerpt"
|
|
1089
1089
|
},
|
|
1090
1090
|
{
|
|
@@ -1100,7 +1100,7 @@
|
|
|
1100
1100
|
"title": "Two units, two axes",
|
|
1101
1101
|
"note": "Orders on the start axis and margin in percent on the end one; each axis is named at its own top, so neither needs the legend to be read.",
|
|
1102
1102
|
"language": "html",
|
|
1103
|
-
"source": "<figure\n slChart\n title=\"
|
|
1103
|
+
"source": "<figure\n slChart\n title=\"Orders and margin\"\n [data]=\"monthly\"\n [series]=\"ordersAndMargin\"\n [y]=\"[orders, margin]\"\n></figure>\n",
|
|
1104
1104
|
"verdict": "excerpt"
|
|
1105
1105
|
},
|
|
1106
1106
|
{
|
|
@@ -1108,7 +1108,7 @@
|
|
|
1108
1108
|
"title": "Dates on a time axis",
|
|
1109
1109
|
"note": "Forty days of sessions: ticks fall on real dates, gaps in the calendar stay gaps, and the dates are wall-clock days, not shifted by the reader’s time zone.",
|
|
1110
1110
|
"language": "html",
|
|
1111
|
-
"source": "<figure\n slChart\n title=\"
|
|
1111
|
+
"source": "<figure\n slChart\n title=\"Daily sessions\"\n [data]=\"daily\"\n [series]=\"sessions\"\n [x]=\"{ field: 'day', type: 'time' }\"\n></figure>\n",
|
|
1112
1112
|
"verdict": "excerpt"
|
|
1113
1113
|
},
|
|
1114
1114
|
{
|
|
@@ -1116,7 +1116,7 @@
|
|
|
1116
1116
|
"title": "Growth by orders of magnitude",
|
|
1117
1117
|
"note": "Active users doubling each month on a logarithmic scale: a steady rate is a straight line, and the early months are not flattened into the floor.",
|
|
1118
1118
|
"language": "html",
|
|
1119
|
-
"source": "<figure\n slChart\n title=\"
|
|
1119
|
+
"source": "<figure\n slChart\n title=\"Active users\"\n [data]=\"users\"\n [series]=\"series\"\n [y]=\"{ scale: 'log' }\"\n></figure>\n",
|
|
1120
1120
|
"verdict": "excerpt"
|
|
1121
1121
|
},
|
|
1122
1122
|
{
|
|
@@ -1124,13 +1124,13 @@
|
|
|
1124
1124
|
"title": "Parts of a whole",
|
|
1125
1125
|
"note": "Revenue by region with labels outside the slices; the tooltip adds each slice’s share of the total.",
|
|
1126
1126
|
"language": "html",
|
|
1127
|
-
"source": "<figure\n slChart\n title=\"
|
|
1127
|
+
"source": "<figure\n slChart\n title=\"Revenue by region\"\n [data]=\"regions\"\n [series]=\"pie\"\n [x]=\"{ field: 'region' }\"\n></figure>\n",
|
|
1128
1128
|
"verdict": "excerpt"
|
|
1129
1129
|
},
|
|
1130
1130
|
{
|
|
1131
1131
|
"id": "donut",
|
|
1132
1132
|
"title": "A donut with the total inside",
|
|
1133
|
-
"note": "innerRadius opens the middle and the center holds the total; a slChartCenter template replaces it, here with the resolution rate. slotField and toneField give each slice the slot or tone its record names, so a category keeps the
|
|
1133
|
+
"note": "innerRadius opens the middle and the center holds the total; a slChartCenter template replaces it, here with the resolution rate. slotField and toneField give each slice the slot or tone its record names, so a category keeps the color it has everywhere else; a slice that names none takes the next free slot.",
|
|
1134
1134
|
"language": "html",
|
|
1135
1135
|
"source": "<figure slChart title=\"Tickets por estado\" [data]=\"tickets\" [series]=\"donut\">\n <ng-template slChartCenter let-model>\n <span data-part=\"center-value\">{{ resolved(model) }}</span>\n <span data-part=\"center-label\">resolvidos</span>\n </ng-template>\n</figure>\n",
|
|
1136
1136
|
"verdict": "excerpt"
|
|
@@ -1140,7 +1140,7 @@
|
|
|
1140
1140
|
"title": "Two measures of each record",
|
|
1141
1141
|
"note": "Sixty tickets by effort and impact in two groups; the tooltip follows the point, not the axis, because a value axis has no categories to gather.",
|
|
1142
1142
|
"language": "html",
|
|
1143
|
-
"source": "<figure\n slChart\n recordKey=\"id\"\n title=\"
|
|
1143
|
+
"source": "<figure\n slChart\n recordKey=\"id\"\n title=\"Effort and impact\"\n [data]=\"work\"\n [series]=\"groups\"\n [x]=\"effort\"\n></figure>\n",
|
|
1144
1144
|
"verdict": "excerpt"
|
|
1145
1145
|
},
|
|
1146
1146
|
{
|
|
@@ -1148,7 +1148,7 @@
|
|
|
1148
1148
|
"title": "A third measure as size",
|
|
1149
1149
|
"note": "sizeField scales each dot by the customers affected, by area rather than radius, so twice the customers reads as twice the ink.",
|
|
1150
1150
|
"language": "html",
|
|
1151
|
-
"source": "<figure\n slChart\n recordKey=\"id\"\n title=\"
|
|
1151
|
+
"source": "<figure\n slChart\n recordKey=\"id\"\n title=\"Effort, impact and customers\"\n [data]=\"work\"\n [series]=\"bubbles\"\n></figure>\n",
|
|
1152
1152
|
"verdict": "excerpt"
|
|
1153
1153
|
},
|
|
1154
1154
|
{
|
|
@@ -1164,7 +1164,7 @@
|
|
|
1164
1164
|
"title": "A legend that toggles",
|
|
1165
1165
|
"note": "Click a series to hide it, Shift+click to show it alone; arrows move along the legend. The legend holds one line: narrower than its items, the ones that do not fit wait behind +N.",
|
|
1166
1166
|
"language": "html",
|
|
1167
|
-
"source": "<figure\n slChart\n title=\"
|
|
1167
|
+
"source": "<figure\n slChart\n title=\"Acquisition channels\"\n [data]=\"sessions\"\n [series]=\"channels\"\n [(hidden)]=\"hidden\"\n></figure>\n",
|
|
1168
1168
|
"verdict": "excerpt"
|
|
1169
1169
|
},
|
|
1170
1170
|
{
|
|
@@ -1172,7 +1172,7 @@
|
|
|
1172
1172
|
"title": "Values in the legend",
|
|
1173
1173
|
"note": "Each legend item carries its series’ value at the active point, and the last value when nothing is active — a readout that never covers the drawing.",
|
|
1174
1174
|
"language": "html",
|
|
1175
|
-
"source": "<figure\n slChart\n legendValues\n title=\"
|
|
1175
|
+
"source": "<figure\n slChart\n legendValues\n title=\"Acquisition channels\"\n [data]=\"sessions\"\n [series]=\"channels\"\n></figure>\n",
|
|
1176
1176
|
"verdict": "excerpt"
|
|
1177
1177
|
},
|
|
1178
1178
|
{
|
|
@@ -1204,7 +1204,7 @@
|
|
|
1204
1204
|
"title": "Zooming a long range",
|
|
1205
1205
|
"note": "Drag across the plot, wheel with Ctrl, or press + and − with the plot focused; 0 or the reset control gives the whole range back.",
|
|
1206
1206
|
"language": "html",
|
|
1207
|
-
"source": "<figure\n slChart\n zoomable\n title=\"
|
|
1207
|
+
"source": "<figure\n slChart\n zoomable\n title=\"Daily sessions\"\n [data]=\"daily\"\n [series]=\"sessions\"\n [(zoom)]=\"zoom\"\n></figure>\n",
|
|
1208
1208
|
"verdict": "excerpt"
|
|
1209
1209
|
},
|
|
1210
1210
|
{
|
|
@@ -1212,7 +1212,7 @@
|
|
|
1212
1212
|
"title": "Charts that move together",
|
|
1213
1213
|
"note": "Two charts share one active point through the two-way value: the pointer on either draws the crosshair on both.",
|
|
1214
1214
|
"language": "html",
|
|
1215
|
-
"source": "<figure\n slChart\n title=\"
|
|
1215
|
+
"source": "<figure\n slChart\n title=\"Revenue\"\n [data]=\"monthly\"\n [series]=\"revenue\"\n [(activePoint)]=\"point\"\n></figure>\n<figure slChart title=\"Orders\" [data]=\"monthly\" [series]=\"orders\" [(activePoint)]=\"point\"></figure>\n",
|
|
1216
1216
|
"verdict": "excerpt"
|
|
1217
1217
|
},
|
|
1218
1218
|
{
|
|
@@ -1226,7 +1226,7 @@
|
|
|
1226
1226
|
{
|
|
1227
1227
|
"id": "many-series",
|
|
1228
1228
|
"title": "More series than slots",
|
|
1229
|
-
"note": "Eleven channels over eight
|
|
1229
|
+
"note": "Eleven channels over eight color slots: the first eight take the palette, the rest take the overflow neutral, and the legend says which is which.",
|
|
1230
1230
|
"language": "html",
|
|
1231
1231
|
"source": "<figure\n slChart\n legendOverflow=\"wrap\"\n title=\"Onze canais\"\n [data]=\"sessions\"\n [series]=\"eleven\"\n></figure>\n",
|
|
1232
1232
|
"verdict": "excerpt"
|
|
@@ -1242,7 +1242,7 @@
|
|
|
1242
1242
|
{
|
|
1243
1243
|
"id": "gaps",
|
|
1244
1244
|
"title": "Missing values stay missing",
|
|
1245
|
-
"note": "A null breaks the line on the left; connectNulls bridges it on the right, for a series where the gap is a sampling
|
|
1245
|
+
"note": "A null breaks the line on the left; connectNulls bridges it on the right, for a series where the gap is a sampling artifact rather than a fact.",
|
|
1246
1246
|
"language": "html",
|
|
1247
1247
|
"source": "<figure slChart title=\"Lacunas\" [data]=\"withGaps\" [series]=\"broken\"></figure>\n<figure slChart title=\"Lacunas ligadas\" [data]=\"withGaps\" [series]=\"connected\"></figure>\n",
|
|
1248
1248
|
"verdict": "excerpt"
|
|
@@ -1266,9 +1266,9 @@
|
|
|
1266
1266
|
{
|
|
1267
1267
|
"id": "texture",
|
|
1268
1268
|
"title": "Texture as a second channel",
|
|
1269
|
-
"note": "texture adds a pattern per slot, so a series is told apart in print, in
|
|
1269
|
+
"note": "texture adds a pattern per slot, so a series is told apart in print, in grayscale or by a reader who does not see the difference between two hues.",
|
|
1270
1270
|
"language": "html",
|
|
1271
|
-
"source": "<figure slChart texture title=\"
|
|
1271
|
+
"source": "<figure slChart texture title=\"Orders by channel\" [data]=\"orders\" [series]=\"channels\"></figure>\n",
|
|
1272
1272
|
"verdict": "excerpt"
|
|
1273
1273
|
},
|
|
1274
1274
|
{
|
|
@@ -1276,7 +1276,7 @@
|
|
|
1276
1276
|
"title": "Waiting, in the shape of what is coming",
|
|
1277
1277
|
"note": "The skeleton is the kind being loaded — bars, a line, a ring — over axis lines, in the plot’s own box, with one line of legend: nothing moves when the data arrives.",
|
|
1278
1278
|
"language": "html",
|
|
1279
|
-
"source": "<figure\n slChart\n title=\"
|
|
1279
|
+
"source": "<figure\n slChart\n title=\"Orders by channel\"\n [data]=\"orders()\"\n [loading]=\"pending()\"\n [series]=\"channels\"\n></figure>\n",
|
|
1280
1280
|
"verdict": "excerpt"
|
|
1281
1281
|
},
|
|
1282
1282
|
{
|
|
@@ -1300,7 +1300,7 @@
|
|
|
1300
1300
|
"title": "The data did not arrive",
|
|
1301
1301
|
"note": "error replaces the drawing with a message and the action that asks again; the header and the box stay where they were.",
|
|
1302
1302
|
"language": "html",
|
|
1303
|
-
"source": "<figure\n slChart\n title=\"
|
|
1303
|
+
"source": "<figure\n slChart\n title=\"Conversion\"\n [data]=\"monthly\"\n [error]=\"failed()\"\n [series]=\"conversion\"\n (retry)=\"reload()\"\n></figure>\n",
|
|
1304
1304
|
"verdict": "excerpt"
|
|
1305
1305
|
},
|
|
1306
1306
|
{
|
|
@@ -1308,7 +1308,7 @@
|
|
|
1308
1308
|
"title": "A row of tiles",
|
|
1309
1309
|
"note": "Four cards in one row: with and without a description, loading, a donut, eight series. Every tile is one height and every plot starts on one line.",
|
|
1310
1310
|
"language": "html",
|
|
1311
|
-
"source": "<div slGrid [columns]=\"4\" [gap]=\"4\">\n <figure\n slChart\n size=\"sm\"\n variant=\"card\"\n title=\"
|
|
1311
|
+
"source": "<div slGrid [columns]=\"4\" [gap]=\"4\">\n <figure\n slChart\n size=\"sm\"\n variant=\"card\"\n title=\"Revenue\"\n [data]=\"monthly\"\n [series]=\"revenue\"\n ></figure>\n <figure slChart loading size=\"sm\" variant=\"card\" title=\"Orders\" [series]=\"channels\"></figure>\n</div>\n",
|
|
1312
1312
|
"verdict": "excerpt"
|
|
1313
1313
|
},
|
|
1314
1314
|
{
|
|
@@ -1316,7 +1316,7 @@
|
|
|
1316
1316
|
"title": "On the page, or as a card",
|
|
1317
1317
|
"note": "plain sits on the page’s own surface for a report; card draws its own surface, border and padding, and fills the grid cell it is given. Inside a section whose heading already names the chart, leave title out and write aria-label: it names the plot.",
|
|
1318
1318
|
"language": "html",
|
|
1319
|
-
"source": "<figure slChart variant=\"plain\" [data]=\"monthly\" [series]=\"revenue\"></figure>\n<figure slChart variant=\"card\" [data]=\"monthly\" [series]=\"revenue\"></figure>\n\n<section slSection>\n <div slSectionHeader>\n <div slSectionTitle><h2 slSectionHeading>
|
|
1319
|
+
"source": "<figure slChart variant=\"plain\" [data]=\"monthly\" [series]=\"revenue\"></figure>\n<figure slChart variant=\"card\" [data]=\"monthly\" [series]=\"revenue\"></figure>\n\n<section slSection>\n <div slSectionHeader>\n <div slSectionTitle><h2 slSectionHeading>Revenue</h2></div>\n </div>\n <div slSectionBody>\n <figure\n slChart\n aria-label=\"Revenue, last 12 months\"\n [data]=\"monthly\"\n [series]=\"revenue\"\n ></figure>\n </div>\n</section>\n",
|
|
1320
1320
|
"verdict": "excerpt"
|
|
1321
1321
|
},
|
|
1322
1322
|
{
|
|
@@ -1337,8 +1337,8 @@
|
|
|
1337
1337
|
},
|
|
1338
1338
|
{
|
|
1339
1339
|
"id": "palette",
|
|
1340
|
-
"title": "
|
|
1341
|
-
"note": "categorical tells series apart, sequential orders them by one hue for ranked data, focus draws the first series in
|
|
1340
|
+
"title": "Color from the design system",
|
|
1341
|
+
"note": "categorical tells series apart, sequential orders them by one hue for ranked data, focus draws the first series in color and the rest in neutral. slot and tone pin a series to a color.",
|
|
1342
1342
|
"language": "html",
|
|
1343
1343
|
"source": "<figure slChart palette=\"categorical\" [data]=\"sessions\" [series]=\"channels\"></figure>\n<figure slChart palette=\"sequential\" [data]=\"regions\" [series]=\"ranking\"></figure>\n<figure slChart palette=\"focus\" [data]=\"sessions\" [series]=\"channels\"></figure>\n",
|
|
1344
1344
|
"verdict": "excerpt"
|
|
@@ -1348,7 +1348,7 @@
|
|
|
1348
1348
|
"title": "A note behind the title",
|
|
1349
1349
|
"note": "help puts an information control beside the title; its note opens on click or Enter, anchored to it, and closes on Escape or outside.",
|
|
1350
1350
|
"language": "html",
|
|
1351
|
-
"source": "<figure\n slChart\n help=\"
|
|
1351
|
+
"source": "<figure\n slChart\n help=\"Revenue recognized in the month, excluding taxes.\"\n title=\"Revenue\"\n [data]=\"monthly\"\n [series]=\"revenue\"\n></figure>\n",
|
|
1352
1352
|
"verdict": "excerpt"
|
|
1353
1353
|
},
|
|
1354
1354
|
{
|
package/docs/chart.md
CHANGED
|
@@ -76,7 +76,7 @@ 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
|
|
79
|
+
| `series` | `readonly ChartSeries[]` | [] | slChart | What is drawn: kind, 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 |
|
|
@@ -99,7 +99,7 @@ Excerpt — not a complete module
|
|
|
99
99
|
| `palette` | `'categorical' \| 'sequential' \| 'focus'` | categorical | slChart | Which ramp the eight slots take |
|
|
100
100
|
| `toolbar` | `'visible' \| 'hover' \| 'none'` | visible | slChart | When the toolbar shows: always, on hover or focus within, or never |
|
|
101
101
|
| `grid` | `'horizontal' \| 'vertical' \| 'both' \| 'none'` | horizontal | slChart | Which grid lines are drawn |
|
|
102
|
-
| `texture` | `boolean` | false | slChart | A pattern per slot, as a second channel beside
|
|
102
|
+
| `texture` | `boolean` | false | slChart | A pattern per slot, as a second channel beside color |
|
|
103
103
|
| `renderer` | `'auto' \| 'svg' \| 'canvas'` | auto | slChart | SVG, or canvas past a few thousand points |
|
|
104
104
|
| `sampling` | `'auto' \| 'none'` | auto | slChart | Downsamples a long line for the screen; the table keeps every value |
|
|
105
105
|
| `animate` | `boolean` | true | slChart | Transitions; off under reduced motion regardless |
|
|
@@ -176,8 +176,8 @@ Excerpt — not a complete module
|
|
|
176
176
|
- Inside the plot the keyboard follows an adaptation of the APG Grid pattern: Left and Right move along the categories, Up and Down between series, Home and End to the ends, Page keys by a tenth; Enter selects, + − and 0 zoom, Escape clears. The tooltip is aria-hidden, and a polite live region says the point reached — only the last one, so holding an arrow does not queue twelve sentences.
|
|
177
177
|
- The legend is a toolbar of toggle buttons with a roving tab stop: aria-pressed says whether a series is drawn, Enter hides it, Shift+Enter shows it alone, and the live region confirms the change.
|
|
178
178
|
- Every chart has a table view with the same numbers in their formats, reachable from the toolbar or the menu; it is the complete reading for anyone the drawing does not serve.
|
|
179
|
-
-
|
|
180
|
-
- The eight slots of the data scale keep adjacent
|
|
179
|
+
- Color is never the only channel: series differ in stroke and marker shape, texture adds a pattern per slot, and under forced colors the drawing is redrawn in system colors with the legend markers kept by mask.
|
|
180
|
+
- The eight slots of the data scale keep adjacent colors apart under simulated protanopia and deuteranopia in every scheme, and each clears 3:1 against the surface.
|
|
181
181
|
|
|
182
182
|
## Tokens
|
|
183
183
|
|
|
@@ -60,12 +60,12 @@ Excerpt — not a complete module
|
|
|
60
60
|
<div slCheckboxGroup variant="tile" [defaultValue]="['pix']">
|
|
61
61
|
<div slGrid minItemWidth="sm">
|
|
62
62
|
<div slCheckbox value="pix">
|
|
63
|
-
|
|
64
|
-
<p slCheckboxDescription>
|
|
63
|
+
Zelle
|
|
64
|
+
<p slCheckboxDescription>Instant settlement.</p>
|
|
65
65
|
</div>
|
|
66
66
|
<div slCheckbox value="card">
|
|
67
|
-
|
|
68
|
-
<p slCheckboxDescription>
|
|
67
|
+
Credit card
|
|
68
|
+
<p slCheckboxDescription>Installments up to twelve times.</p>
|
|
69
69
|
</div>
|
|
70
70
|
</div>
|
|
71
71
|
</div>
|
|
@@ -220,10 +220,10 @@ Excerpt — not a complete module
|
|
|
220
220
|
|
|
221
221
|
```html
|
|
222
222
|
<fieldset slFieldGroup required>
|
|
223
|
-
<legend slFieldGroupLegend>
|
|
223
|
+
<legend slFieldGroupLegend>Notifications</legend>
|
|
224
224
|
<div slCheckboxGroup required formControlName="alerts">
|
|
225
|
-
<div slCheckbox value="approved">
|
|
226
|
-
<div slCheckbox value="refused">
|
|
225
|
+
<div slCheckbox value="approved">Order approved</div>
|
|
226
|
+
<div slCheckbox value="refused">Order refused</div>
|
|
227
227
|
</div>
|
|
228
228
|
</fieldset>
|
|
229
229
|
```
|
|
@@ -237,9 +237,9 @@ Excerpt — not a complete module
|
|
|
237
237
|
```html
|
|
238
238
|
<div slCheckboxGroup orientation="horizontal">
|
|
239
239
|
<div slCheckbox value="a">
|
|
240
|
-
|
|
240
|
+
I authorize the use of browsing data to personalize recommendations
|
|
241
241
|
</div>
|
|
242
|
-
<div slCheckbox value="b">
|
|
242
|
+
<div slCheckbox value="b">And also to measure campaign reach</div>
|
|
243
243
|
</div>
|
|
244
244
|
```
|
|
245
245
|
|
|
@@ -251,8 +251,8 @@ Excerpt — not a complete module
|
|
|
251
251
|
|
|
252
252
|
```html
|
|
253
253
|
<ul slCheckboxGroup class="slotted-demo-list" [defaultValue]="['a']">
|
|
254
|
-
<li slCheckbox value="a">
|
|
255
|
-
<li slCheckbox value="b">
|
|
254
|
+
<li slCheckbox value="a">One item</li>
|
|
255
|
+
<li slCheckbox value="b">And another below it</li>
|
|
256
256
|
</ul>
|
|
257
257
|
```
|
|
258
258
|
|
|
@@ -266,8 +266,8 @@ Excerpt — not a complete module
|
|
|
266
266
|
<!-- The group binds no key at all: each box is a native checkbox, so Tab
|
|
267
267
|
reaches every one of them and Space toggles the one that has focus. -->
|
|
268
268
|
<div slCheckboxGroup>
|
|
269
|
-
<div slCheckbox value="a">Tab
|
|
270
|
-
<div slCheckbox value="b">
|
|
269
|
+
<div slCheckbox value="a">Tab to here</div>
|
|
270
|
+
<div slCheckbox value="b">And again to here</div>
|
|
271
271
|
</div>
|
|
272
272
|
```
|
|
273
273
|
|