@skyux/code-examples 14.7.0 → 14.9.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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, inject, ChangeDetectionStrategy, Input, viewChild, signal, effect, Injectable, ChangeDetectorRef, input, computed, model, resource, afterNextRender, linkedSignal, untracked, ViewChild, InjectionToken } from '@angular/core';
2
+ import { Component, inject, ChangeDetectionStrategy, Input, viewChild, signal, effect, Injectable, ChangeDetectorRef, input, computed, resource, model, afterNextRender, linkedSignal, untracked, ViewChild, InjectionToken } from '@angular/core';
3
3
  import * as i2 from '@skyux/action-bars';
4
4
  import { SkySummaryActionBarModule } from '@skyux/action-bars';
5
5
  import * as i1 from '@skyux/indicators';
@@ -43,6 +43,7 @@ import * as i2$6 from '@skyux/autonumeric';
43
43
  import { SkyAutonumericModule, SkyAutonumericOptionsProvider } from '@skyux/autonumeric';
44
44
  import * as i1$8 from '@skyux/avatar';
45
45
  import { SkyAvatarModule } from '@skyux/avatar';
46
+ import { SkyChart, SkyChartAxisCategory, SkyChartAxisValue, SkyChartBar, SkyChartBarSeries } from '@skyux/charts';
46
47
  import * as i2$7 from '@skyux/colorpicker';
47
48
  import { SkyColorpickerModule, SkyColorpickerMessageType } from '@skyux/colorpicker';
48
49
  import * as i3$1 from '@skyux/core';
@@ -4928,6 +4929,374 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
4928
4929
  args: [{ selector: 'app-avatar-example', imports: [SkyAvatarModule], template: "<sky-avatar\n data-sky-id=\"user-profile-avatar\"\n [canChange]=\"true\"\n [maxFileSize]=\"1000\"\n [name]=\"name()\"\n [src]=\"avatar()\"\n (avatarChanged)=\"onAvatarChanged($event)\"\n/>\n" }]
4929
4930
  }] });
4930
4931
 
4932
+ /**
4933
+ * @title Bar chart with asynchronously loaded data
4934
+ */
4935
+ class ChartsChartBarAsyncExample {
4936
+ constructor() {
4937
+ // Simulate network latency.
4938
+ this.delay = input(1200, ...(ngDevMode ? [{ debugName: "delay" }] : []));
4939
+ // A real SPA might use `httpResource` to load remote data. While reloading,
4940
+ // the resource keeps its previous value, so the chart stays rendered
4941
+ // beneath the wait overlay.
4942
+ this.donations = resource({ ...(ngDevMode ? { debugName: "donations" } : {}), params: () => ({ delay: this.delay() }),
4943
+ loader: ({ params }) => fetchDonationsFromServer(params.delay) });
4944
+ }
4945
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarAsyncExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4946
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: ChartsChartBarAsyncExample, isStandalone: true, selector: "app-chart-bar-async-example", inputs: { delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button\n class=\"sky-btn sky-btn-default sky-theme-margin-bottom-s\"\n type=\"button\"\n [disabled]=\"donations.isLoading()\"\n (click)=\"donations.reload()\"\n>\n Reload data\n</button>\n<sky-chart\n data-sky-id=\"donations-by-quarter\"\n headingText=\"Donations by quarter\"\n [loading]=\"donations.isLoading()\"\n>\n @if (donations.value(); as data) {\n <sky-chart-bar>\n <sky-chart-axis-category\n labelText=\"Quarter\"\n [categories]=\"data.categories\"\n />\n <sky-chart-axis-value format=\"currency\" labelText=\"Donations\" />\n <sky-chart-bar-series labelText=\"Donations\" [values]=\"data.values\" />\n </sky-chart-bar>\n }\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
4947
+ }
4948
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarAsyncExample, decorators: [{
4949
+ type: Component,
4950
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-async-example', imports: [
4951
+ SkyChart,
4952
+ SkyChartAxisCategory,
4953
+ SkyChartAxisValue,
4954
+ SkyChartBar,
4955
+ SkyChartBarSeries,
4956
+ ], template: "<button\n class=\"sky-btn sky-btn-default sky-theme-margin-bottom-s\"\n type=\"button\"\n [disabled]=\"donations.isLoading()\"\n (click)=\"donations.reload()\"\n>\n Reload data\n</button>\n<sky-chart\n data-sky-id=\"donations-by-quarter\"\n headingText=\"Donations by quarter\"\n [loading]=\"donations.isLoading()\"\n>\n @if (donations.value(); as data) {\n <sky-chart-bar>\n <sky-chart-axis-category\n labelText=\"Quarter\"\n [categories]=\"data.categories\"\n />\n <sky-chart-axis-value format=\"currency\" labelText=\"Donations\" />\n <sky-chart-bar-series labelText=\"Donations\" [values]=\"data.values\" />\n </sky-chart-bar>\n }\n</sky-chart>\n" }]
4957
+ }], propDecorators: { delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }] } });
4958
+ /**
4959
+ * Simulates a server-side call that returns the chart's data after a delay.
4960
+ */
4961
+ async function fetchDonationsFromServer(delay) {
4962
+ await new Promise((resolve) => setTimeout(resolve, delay));
4963
+ return {
4964
+ categories: ['Q1', 'Q2', 'Q3', 'Q4'],
4965
+ values: [45, 72, 38, 90],
4966
+ };
4967
+ }
4968
+
4969
+ /**
4970
+ * @title Basic bar chart
4971
+ */
4972
+ class ChartsChartBarBasicExample {
4973
+ constructor() {
4974
+ this.years = [2010, 2011, 2012, 2013, 2014, 2015, 2016];
4975
+ this.acquisitions = [10, 20, 15, 25, 22, 30, 28];
4976
+ }
4977
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarBasicExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4978
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: ChartsChartBarBasicExample, isStandalone: true, selector: "app-chart-bar-basic-example", ngImport: i0, template: "<sky-chart\n data-sky-id=\"acquisitions-by-year\"\n headingText=\"Acquisitions by year\"\n>\n <sky-chart-bar data-sky-id=\"acquisitions-bar\">\n <sky-chart-axis-category labelText=\"Year\" [categories]=\"years\" />\n <sky-chart-axis-value labelText=\"Acquisitions\" />\n <sky-chart-bar-series\n labelText=\"Acquisitions by year\"\n [values]=\"acquisitions\"\n />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
4979
+ }
4980
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarBasicExample, decorators: [{
4981
+ type: Component,
4982
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-basic-example', imports: [
4983
+ SkyChart,
4984
+ SkyChartAxisCategory,
4985
+ SkyChartAxisValue,
4986
+ SkyChartBar,
4987
+ SkyChartBarSeries,
4988
+ ], template: "<sky-chart\n data-sky-id=\"acquisitions-by-year\"\n headingText=\"Acquisitions by year\"\n>\n <sky-chart-bar data-sky-id=\"acquisitions-bar\">\n <sky-chart-axis-category labelText=\"Year\" [categories]=\"years\" />\n <sky-chart-axis-value labelText=\"Acquisitions\" />\n <sky-chart-bar-series\n labelText=\"Acquisitions by year\"\n [values]=\"acquisitions\"\n />\n </sky-chart-bar>\n</sky-chart>\n" }]
4989
+ }] });
4990
+
4991
+ /**
4992
+ * @title Floating bar chart with multiple series
4993
+ */
4994
+ class ChartsChartBarFloatingMultipleSeriesExample {
4995
+ constructor() {
4996
+ this.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'];
4997
+ this.anchorage = [
4998
+ [-13, -6],
4999
+ [-11, -3],
5000
+ [-7, 1],
5001
+ [0, 8],
5002
+ [6, 14],
5003
+ [11, 18],
5004
+ ];
5005
+ this.asheville = [
5006
+ [-3, 8],
5007
+ [-1, 11],
5008
+ [3, 15],
5009
+ [7, 20],
5010
+ [12, 24],
5011
+ [16, 28],
5012
+ ];
5013
+ }
5014
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarFloatingMultipleSeriesExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5015
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: ChartsChartBarFloatingMultipleSeriesExample, isStandalone: true, selector: "app-chart-bar-floating-multiple-series-example", ngImport: i0, template: "<sky-chart\n data-sky-id=\"temperature-range-by-city\"\n headingText=\"Temperature range by month and city\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value labelText=\"Temperature (\u00B0C)\" />\n <sky-chart-bar-series labelText=\"Anchorage\" [values]=\"anchorage\" />\n <sky-chart-bar-series labelText=\"Asheville\" [values]=\"asheville\" />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5016
+ }
5017
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarFloatingMultipleSeriesExample, decorators: [{
5018
+ type: Component,
5019
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-floating-multiple-series-example', imports: [
5020
+ SkyChart,
5021
+ SkyChartAxisCategory,
5022
+ SkyChartAxisValue,
5023
+ SkyChartBar,
5024
+ SkyChartBarSeries,
5025
+ ], template: "<sky-chart\n data-sky-id=\"temperature-range-by-city\"\n headingText=\"Temperature range by month and city\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value labelText=\"Temperature (\u00B0C)\" />\n <sky-chart-bar-series labelText=\"Anchorage\" [values]=\"anchorage\" />\n <sky-chart-bar-series labelText=\"Asheville\" [values]=\"asheville\" />\n </sky-chart-bar>\n</sky-chart>\n" }]
5026
+ }] });
5027
+
5028
+ /**
5029
+ * @title Floating bar chart (value ranges)
5030
+ */
5031
+ class ChartsChartBarFloatingExample {
5032
+ constructor() {
5033
+ this.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'];
5034
+ this.temperatureRanges = [
5035
+ [-2, 5],
5036
+ [0, 8],
5037
+ [4, 14],
5038
+ [9, 19],
5039
+ [14, 24],
5040
+ [18, 28],
5041
+ ];
5042
+ }
5043
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarFloatingExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5044
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: ChartsChartBarFloatingExample, isStandalone: true, selector: "app-chart-bar-floating-example", ngImport: i0, template: "<sky-chart\n data-sky-id=\"temperature-range\"\n headingText=\"Temperature range by month\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value labelText=\"Temperature (\u00B0C)\" />\n <sky-chart-bar-series\n labelText=\"Temperature range\"\n [values]=\"temperatureRanges\"\n />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5045
+ }
5046
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarFloatingExample, decorators: [{
5047
+ type: Component,
5048
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-floating-example', imports: [
5049
+ SkyChart,
5050
+ SkyChartAxisCategory,
5051
+ SkyChartAxisValue,
5052
+ SkyChartBar,
5053
+ SkyChartBarSeries,
5054
+ ], template: "<sky-chart\n data-sky-id=\"temperature-range\"\n headingText=\"Temperature range by month\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value labelText=\"Temperature (\u00B0C)\" />\n <sky-chart-bar-series\n labelText=\"Temperature range\"\n [values]=\"temperatureRanges\"\n />\n </sky-chart-bar>\n</sky-chart>\n" }]
5055
+ }] });
5056
+
5057
+ /**
5058
+ * @title Bar chart with grouped, stacked series
5059
+ */
5060
+ class ChartsChartBarGroupedStackedExample {
5061
+ constructor() {
5062
+ this.months = [
5063
+ 'January',
5064
+ 'February',
5065
+ 'March',
5066
+ 'April',
5067
+ 'May',
5068
+ 'June',
5069
+ 'July',
5070
+ ];
5071
+ this.westInStore = [38, 6, 54, 69, 88, 13, 87];
5072
+ this.westOnline = [37, 84, 28, 84, 97, 22, 63];
5073
+ this.eastInStore = [24, 51, 40, 33, 62, 45, 51];
5074
+ this.eastOnline = [55, 30, 47, 58, 41, 66, 39];
5075
+ }
5076
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarGroupedStackedExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5077
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: ChartsChartBarGroupedStackedExample, isStandalone: true, selector: "app-chart-bar-grouped-stacked-example", ngImport: i0, template: "<sky-chart\n data-sky-id=\"monthly-sales-by-region\"\n headingText=\"Monthly sales by region\"\n>\n <sky-chart-bar seriesLayout=\"stacked\">\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value labelText=\"Sales\" />\n <sky-chart-bar-series\n labelText=\"West in store\"\n stackId=\"West\"\n [values]=\"westInStore\"\n />\n <sky-chart-bar-series\n labelText=\"West online\"\n stackId=\"West\"\n [values]=\"westOnline\"\n />\n <sky-chart-bar-series\n labelText=\"East in store\"\n stackId=\"East\"\n [values]=\"eastInStore\"\n />\n <sky-chart-bar-series\n labelText=\"East online\"\n stackId=\"East\"\n [values]=\"eastOnline\"\n />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5078
+ }
5079
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarGroupedStackedExample, decorators: [{
5080
+ type: Component,
5081
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-grouped-stacked-example', imports: [
5082
+ SkyChart,
5083
+ SkyChartAxisCategory,
5084
+ SkyChartAxisValue,
5085
+ SkyChartBar,
5086
+ SkyChartBarSeries,
5087
+ ], template: "<sky-chart\n data-sky-id=\"monthly-sales-by-region\"\n headingText=\"Monthly sales by region\"\n>\n <sky-chart-bar seriesLayout=\"stacked\">\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value labelText=\"Sales\" />\n <sky-chart-bar-series\n labelText=\"West in store\"\n stackId=\"West\"\n [values]=\"westInStore\"\n />\n <sky-chart-bar-series\n labelText=\"West online\"\n stackId=\"West\"\n [values]=\"westOnline\"\n />\n <sky-chart-bar-series\n labelText=\"East in store\"\n stackId=\"East\"\n [values]=\"eastInStore\"\n />\n <sky-chart-bar-series\n labelText=\"East online\"\n stackId=\"East\"\n [values]=\"eastOnline\"\n />\n </sky-chart-bar>\n</sky-chart>\n" }]
5088
+ }] });
5089
+
5090
+ /**
5091
+ * @title Bar chart with hidden axis labels
5092
+ */
5093
+ class ChartsChartBarHiddenLabelsExample {
5094
+ constructor() {
5095
+ this.years = [2010, 2011, 2012, 2013, 2014, 2015, 2016];
5096
+ this.acquisitions = [10, 20, 15, 25, 22, 30, 28];
5097
+ }
5098
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarHiddenLabelsExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5099
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: ChartsChartBarHiddenLabelsExample, isStandalone: true, selector: "app-chart-bar-hidden-labels-example", ngImport: i0, template: "<sky-chart\n data-sky-id=\"acquisitions-by-year-minimal\"\n headingText=\"Acquisitions by year\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category\n labelHidden\n labelText=\"Year\"\n [categories]=\"years\"\n />\n <sky-chart-axis-value labelHidden labelText=\"Acquisitions\" />\n <sky-chart-bar-series\n labelText=\"Acquisitions by year\"\n [values]=\"acquisitions\"\n />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5100
+ }
5101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarHiddenLabelsExample, decorators: [{
5102
+ type: Component,
5103
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-hidden-labels-example', imports: [
5104
+ SkyChart,
5105
+ SkyChartAxisCategory,
5106
+ SkyChartAxisValue,
5107
+ SkyChartBar,
5108
+ SkyChartBarSeries,
5109
+ ], template: "<sky-chart\n data-sky-id=\"acquisitions-by-year-minimal\"\n headingText=\"Acquisitions by year\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category\n labelHidden\n labelText=\"Year\"\n [categories]=\"years\"\n />\n <sky-chart-axis-value labelHidden labelText=\"Acquisitions\" />\n <sky-chart-bar-series\n labelText=\"Acquisitions by year\"\n [values]=\"acquisitions\"\n />\n </sky-chart-bar>\n</sky-chart>\n" }]
5110
+ }] });
5111
+
5112
+ /**
5113
+ * @title Horizontal bar chart
5114
+ */
5115
+ class ChartsChartBarHorizontalExample {
5116
+ constructor() {
5117
+ this.regions = [
5118
+ 'Northeast',
5119
+ 'Southeast',
5120
+ 'Midwest',
5121
+ 'Southwest',
5122
+ 'West',
5123
+ ];
5124
+ this.sales = [42, 58, 35, 47, 63];
5125
+ }
5126
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarHorizontalExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5127
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: ChartsChartBarHorizontalExample, isStandalone: true, selector: "app-chart-bar-horizontal-example", ngImport: i0, template: "<sky-chart data-sky-id=\"sales-by-region\" headingText=\"Sales by region\">\n <sky-chart-bar orientation=\"horizontal\">\n <sky-chart-axis-category labelText=\"Region\" [categories]=\"regions\" />\n <sky-chart-axis-value labelText=\"Sales\" />\n <sky-chart-bar-series labelText=\"Sales\" [values]=\"sales\" />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5128
+ }
5129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarHorizontalExample, decorators: [{
5130
+ type: Component,
5131
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-horizontal-example', imports: [
5132
+ SkyChart,
5133
+ SkyChartAxisCategory,
5134
+ SkyChartAxisValue,
5135
+ SkyChartBar,
5136
+ SkyChartBarSeries,
5137
+ ], template: "<sky-chart data-sky-id=\"sales-by-region\" headingText=\"Sales by region\">\n <sky-chart-bar orientation=\"horizontal\">\n <sky-chart-axis-category labelText=\"Region\" [categories]=\"regions\" />\n <sky-chart-axis-value labelText=\"Sales\" />\n <sky-chart-bar-series labelText=\"Sales\" [values]=\"sales\" />\n </sky-chart-bar>\n</sky-chart>\n" }]
5138
+ }] });
5139
+
5140
+ /**
5141
+ * @title Bar chart with a logarithmic value scale
5142
+ */
5143
+ class ChartsChartBarLogarithmicExample {
5144
+ constructor() {
5145
+ this.categories = [
5146
+ 'Cat-1',
5147
+ 'Cat-2',
5148
+ 'Cat-3',
5149
+ 'Cat-4',
5150
+ 'Cat-5',
5151
+ 'Cat-6',
5152
+ 'Cat-7',
5153
+ 'Cat-8',
5154
+ 'Cat-9',
5155
+ 'Cat-10',
5156
+ 'Cat-11',
5157
+ 'Cat-12',
5158
+ 'Cat-13',
5159
+ ];
5160
+ this.values = [
5161
+ 1, 1.1, 1.9, 2.1, 4.9, 5.1, 9, 11, 90, 110, 900, 1100, 9000,
5162
+ ];
5163
+ }
5164
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarLogarithmicExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5165
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: ChartsChartBarLogarithmicExample, isStandalone: true, selector: "app-chart-bar-logarithmic-example", ngImport: i0, template: "<sky-chart\n data-sky-id=\"spending-by-category\"\n headingText=\"Spending by category\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Category\" [categories]=\"categories\" />\n <sky-chart-axis-value labelText=\"Spending\" scaleType=\"logarithmic\" />\n <sky-chart-bar-series labelText=\"Spending\" [values]=\"values\" />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5166
+ }
5167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarLogarithmicExample, decorators: [{
5168
+ type: Component,
5169
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-logarithmic-example', imports: [
5170
+ SkyChart,
5171
+ SkyChartAxisCategory,
5172
+ SkyChartAxisValue,
5173
+ SkyChartBar,
5174
+ SkyChartBarSeries,
5175
+ ], template: "<sky-chart\n data-sky-id=\"spending-by-category\"\n headingText=\"Spending by category\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Category\" [categories]=\"categories\" />\n <sky-chart-axis-value labelText=\"Spending\" scaleType=\"logarithmic\" />\n <sky-chart-bar-series labelText=\"Spending\" [values]=\"values\" />\n </sky-chart-bar>\n</sky-chart>\n" }]
5176
+ }] });
5177
+
5178
+ /**
5179
+ * @title Bar chart with multiple series (grouped bars)
5180
+ */
5181
+ class ChartsChartBarMultipleSeriesExample {
5182
+ constructor() {
5183
+ this.years = [2010, 2011, 2012, 2013, 2014, 2015, 2016];
5184
+ this.actual = [10, 20, 15, 25, 22, 30, 28];
5185
+ this.target = [12, 18, 20, 22, 26, 28, 32];
5186
+ }
5187
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarMultipleSeriesExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5188
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: ChartsChartBarMultipleSeriesExample, isStandalone: true, selector: "app-chart-bar-multiple-series-example", ngImport: i0, template: "<sky-chart data-sky-id=\"actual-vs-target\" headingText=\"Actual vs. target\">\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Year\" [categories]=\"years\" />\n <sky-chart-axis-value labelText=\"Acquisitions\" />\n <sky-chart-bar-series labelText=\"Actual\" [values]=\"actual\" />\n <sky-chart-bar-series labelText=\"Target\" [values]=\"target\" />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5189
+ }
5190
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarMultipleSeriesExample, decorators: [{
5191
+ type: Component,
5192
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-multiple-series-example', imports: [
5193
+ SkyChart,
5194
+ SkyChartAxisCategory,
5195
+ SkyChartAxisValue,
5196
+ SkyChartBar,
5197
+ SkyChartBarSeries,
5198
+ ], template: "<sky-chart data-sky-id=\"actual-vs-target\" headingText=\"Actual vs. target\">\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Year\" [categories]=\"years\" />\n <sky-chart-axis-value labelText=\"Acquisitions\" />\n <sky-chart-bar-series labelText=\"Actual\" [values]=\"actual\" />\n <sky-chart-bar-series labelText=\"Target\" [values]=\"target\" />\n </sky-chart-bar>\n</sky-chart>\n" }]
5199
+ }] });
5200
+
5201
+ /**
5202
+ * @title Stacked bar chart
5203
+ */
5204
+ class ChartsChartBarStackedExample {
5205
+ constructor() {
5206
+ this.months = [
5207
+ 'January',
5208
+ 'February',
5209
+ 'March',
5210
+ 'April',
5211
+ 'May',
5212
+ 'June',
5213
+ 'July',
5214
+ ];
5215
+ this.online = [38, 6, 54, 69, 88, 13, 87];
5216
+ this.inStore = [37, 84, 28, 84, 97, 22, 63];
5217
+ this.phone = [86, 4, 7, 85, 8, 51, 30];
5218
+ }
5219
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarStackedExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5220
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: ChartsChartBarStackedExample, isStandalone: true, selector: "app-chart-bar-stacked-example", ngImport: i0, template: "<sky-chart data-sky-id=\"monthly-sales\" headingText=\"Monthly sales\">\n <sky-chart-bar seriesLayout=\"stacked\">\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value labelText=\"Sales\" />\n <sky-chart-bar-series labelText=\"In store\" [values]=\"inStore\" />\n <sky-chart-bar-series labelText=\"Online\" [values]=\"online\" />\n <sky-chart-bar-series labelText=\"Phone\" [values]=\"phone\" />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5221
+ }
5222
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarStackedExample, decorators: [{
5223
+ type: Component,
5224
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-stacked-example', imports: [
5225
+ SkyChart,
5226
+ SkyChartAxisCategory,
5227
+ SkyChartAxisValue,
5228
+ SkyChartBar,
5229
+ SkyChartBarSeries,
5230
+ ], template: "<sky-chart data-sky-id=\"monthly-sales\" headingText=\"Monthly sales\">\n <sky-chart-bar seriesLayout=\"stacked\">\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value labelText=\"Sales\" />\n <sky-chart-bar-series labelText=\"In store\" [values]=\"inStore\" />\n <sky-chart-bar-series labelText=\"Online\" [values]=\"online\" />\n <sky-chart-bar-series labelText=\"Phone\" [values]=\"phone\" />\n </sky-chart-bar>\n</sky-chart>\n" }]
5231
+ }] });
5232
+
5233
+ /**
5234
+ * @title Bar chart with fixed value bounds
5235
+ */
5236
+ class ChartsChartBarValueBoundsExample {
5237
+ constructor() {
5238
+ this.months = [
5239
+ 'January',
5240
+ 'February',
5241
+ 'March',
5242
+ 'April',
5243
+ 'May',
5244
+ 'June',
5245
+ 'July',
5246
+ ];
5247
+ // Percent values are fractional, so 0.85 displays as 85%. Pinning the axis
5248
+ // to [0, 1] keeps the scale at 0–100% regardless of the plotted values.
5249
+ this.goalCompletion = [
5250
+ 0.62, 0.71, 0.68, 0.79, 0.85, 0.91, 0.88,
5251
+ ];
5252
+ }
5253
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarValueBoundsExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5254
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: ChartsChartBarValueBoundsExample, isStandalone: true, selector: "app-chart-bar-value-bounds-example", ngImport: i0, template: "<sky-chart\n data-sky-id=\"goal-completion\"\n headingText=\"Goal completion by month\"\n subheadingText=\"The percent value axis is pinned to 0\u2013100% with min and max, so the scale stays fixed regardless of the plotted values.\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category\n labelHidden\n labelText=\"Month\"\n [categories]=\"months\"\n />\n <sky-chart-axis-value\n format=\"percent\"\n labelText=\"Goal completion\"\n max=\"1\"\n min=\"0\"\n />\n <sky-chart-bar-series\n labelText=\"Goal completion\"\n [values]=\"goalCompletion\"\n />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5255
+ }
5256
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarValueBoundsExample, decorators: [{
5257
+ type: Component,
5258
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-value-bounds-example', imports: [
5259
+ SkyChart,
5260
+ SkyChartAxisCategory,
5261
+ SkyChartAxisValue,
5262
+ SkyChartBar,
5263
+ SkyChartBarSeries,
5264
+ ], template: "<sky-chart\n data-sky-id=\"goal-completion\"\n headingText=\"Goal completion by month\"\n subheadingText=\"The percent value axis is pinned to 0\u2013100% with min and max, so the scale stays fixed regardless of the plotted values.\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category\n labelHidden\n labelText=\"Month\"\n [categories]=\"months\"\n />\n <sky-chart-axis-value\n format=\"percent\"\n labelText=\"Goal completion\"\n max=\"1\"\n min=\"0\"\n />\n <sky-chart-bar-series\n labelText=\"Goal completion\"\n [values]=\"goalCompletion\"\n />\n </sky-chart-bar>\n</sky-chart>\n" }]
5265
+ }] });
5266
+
5267
+ /**
5268
+ * @title Bar chart value formats (number, currency, and percent)
5269
+ */
5270
+ class ChartsChartBarValueFormatExample {
5271
+ constructor() {
5272
+ this.months = [
5273
+ 'January',
5274
+ 'February',
5275
+ 'March',
5276
+ 'April',
5277
+ 'May',
5278
+ 'June',
5279
+ 'July',
5280
+ ];
5281
+ this.acquisitions = [10, 20, 15, 25, 22, 30, 28];
5282
+ this.revenue = [1000, 2200, 1800, 2600, 2400, 3100, 2900];
5283
+ // Percent values are fractional, so 0.25 displays as 25%.
5284
+ this.conversionRate = [0.1, 0.14, 0.12, 0.18, 0.16, 0.22, 0.2];
5285
+ }
5286
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarValueFormatExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5287
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: ChartsChartBarValueFormatExample, isStandalone: true, selector: "app-chart-bar-value-format-example", ngImport: i0, template: "<sky-chart\n class=\"sky-theme-margin-bottom-l\"\n data-sky-id=\"acquisitions-by-month\"\n headingText=\"Acquisitions by month\"\n subheadingText=\"Number format: values display as plain, locale-aware numbers.\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category\n labelHidden\n labelText=\"Month\"\n [categories]=\"months\"\n />\n <sky-chart-axis-value labelText=\"Acquisitions\" />\n <sky-chart-bar-series labelText=\"Acquisitions\" [values]=\"acquisitions\" />\n </sky-chart-bar>\n</sky-chart>\n\n<sky-chart\n class=\"sky-theme-margin-bottom-l\"\n data-sky-id=\"revenue-by-month\"\n headingText=\"Revenue by month\"\n subheadingText=\"Currency format: values display with the specified currency code (EUR).\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category\n labelHidden\n labelText=\"Month\"\n [categories]=\"months\"\n />\n <sky-chart-axis-value\n currencyCode=\"EUR\"\n digits=\"0\"\n format=\"currency\"\n labelText=\"Revenue\"\n />\n <sky-chart-bar-series labelText=\"Revenue\" [values]=\"revenue\" />\n </sky-chart-bar>\n</sky-chart>\n\n<sky-chart\n data-sky-id=\"conversion-rate-by-month\"\n headingText=\"Conversion rate by month\"\n subheadingText=\"Percent format: fractional values display as percentages, so 0.25 shows as 25%.\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value format=\"percent\" labelText=\"Conversion\" />\n <sky-chart-bar-series\n labelText=\"Conversion rate\"\n [values]=\"conversionRate\"\n />\n </sky-chart-bar>\n</sky-chart>\n", dependencies: [{ kind: "component", type: SkyChart, selector: "sky-chart", inputs: ["headingHidden", "headingLevel", "headingStyle", "headingText", "helpKey", "helpPopoverContent", "helpPopoverTitle", "loading", "subheadingText"] }, { kind: "component", type: SkyChartAxisCategory, selector: "sky-chart-axis-category", inputs: ["categories", "labelHidden", "labelText"] }, { kind: "component", type: SkyChartAxisValue, selector: "sky-chart-axis-value", inputs: ["currencyCode", "digits", "format", "labelHidden", "labelText", "max", "min", "scaleType"] }, { kind: "component", type: SkyChartBar, selector: "sky-chart-bar", inputs: ["orientation", "seriesLayout"] }, { kind: "component", type: SkyChartBarSeries, selector: "sky-chart-bar-series", inputs: ["labelText", "stackId", "values"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5288
+ }
5289
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChartsChartBarValueFormatExample, decorators: [{
5290
+ type: Component,
5291
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-chart-bar-value-format-example', imports: [
5292
+ SkyChart,
5293
+ SkyChartAxisCategory,
5294
+ SkyChartAxisValue,
5295
+ SkyChartBar,
5296
+ SkyChartBarSeries,
5297
+ ], template: "<sky-chart\n class=\"sky-theme-margin-bottom-l\"\n data-sky-id=\"acquisitions-by-month\"\n headingText=\"Acquisitions by month\"\n subheadingText=\"Number format: values display as plain, locale-aware numbers.\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category\n labelHidden\n labelText=\"Month\"\n [categories]=\"months\"\n />\n <sky-chart-axis-value labelText=\"Acquisitions\" />\n <sky-chart-bar-series labelText=\"Acquisitions\" [values]=\"acquisitions\" />\n </sky-chart-bar>\n</sky-chart>\n\n<sky-chart\n class=\"sky-theme-margin-bottom-l\"\n data-sky-id=\"revenue-by-month\"\n headingText=\"Revenue by month\"\n subheadingText=\"Currency format: values display with the specified currency code (EUR).\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category\n labelHidden\n labelText=\"Month\"\n [categories]=\"months\"\n />\n <sky-chart-axis-value\n currencyCode=\"EUR\"\n digits=\"0\"\n format=\"currency\"\n labelText=\"Revenue\"\n />\n <sky-chart-bar-series labelText=\"Revenue\" [values]=\"revenue\" />\n </sky-chart-bar>\n</sky-chart>\n\n<sky-chart\n data-sky-id=\"conversion-rate-by-month\"\n headingText=\"Conversion rate by month\"\n subheadingText=\"Percent format: fractional values display as percentages, so 0.25 shows as 25%.\"\n>\n <sky-chart-bar>\n <sky-chart-axis-category labelText=\"Month\" [categories]=\"months\" />\n <sky-chart-axis-value format=\"percent\" labelText=\"Conversion\" />\n <sky-chart-bar-series\n labelText=\"Conversion rate\"\n [values]=\"conversionRate\"\n />\n </sky-chart-bar>\n</sky-chart>\n" }]
5298
+ }] });
5299
+
4931
5300
  function isColorpickerOutput$2(value) {
4932
5301
  return !!(value && typeof value === 'object' && 'rgba' in value);
4933
5302
  }
@@ -14864,5 +15233,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
14864
15233
  * Generated bundle index. Do not edit.
14865
15234
  */
14866
15235
 
14867
- export { ActionBarsSummaryActionBarBasicExampleComponent, ActionBarsSummaryActionBarErrorExampleComponent, ActionBarsSummaryActionBarModalExampleComponent, ActionBarsSummaryActionBarTabExampleComponent, AgGridDataEntryGridBasicExampleComponent, AgGridDataEntryGridDataManagerAddedExampleComponent, AgGridDataEntryGridFocusExampleComponent, AgGridDataEntryGridInlineHelpExampleComponent, AgGridDataGridBasicExampleComponent, AgGridDataGridBasicMultiselectExampleComponent, AgGridDataGridDataManagerExampleComponent, AgGridDataGridDataManagerMultiselectExampleComponent, AgGridDataGridInlineHelpExampleComponent, AgGridDataGridPagingExampleComponent, AgGridDataGridTemplateRefColumnExampleComponent, AgGridDataGridTopScrollExampleComponent, AngularTreeComponentAngularTreeBasicExampleComponent, AngularTreeComponentAngularTreeHelpKeyExampleComponent, AngularTreeComponentAngularTreePreselectedNodesExampleComponent, AutonumericCurrencyExampleComponent, AutonumericInternationalFormattingExampleComponent, AutonumericOptionsProviderExampleComponent, AutonumericPresetExampleComponent, AvatarExampleComponent, ColorpickerBasicExampleComponent, ColorpickerHelpKeyExampleComponent, ColorpickerProgrammaticExampleComponent, CoreIdExampleComponent, CoreMediaQueryBasicExampleComponent, CoreMediaQueryResponsiveHostExampleComponent, CoreNumericBasicExampleComponent, DataGridBasicExampleComponent, DataGridLoadingExampleComponent, DataGridPagingExampleComponent, DataGridSortingExampleComponent, DataManagerBasicExampleComponent, DatetimeDatePipeBasicExampleComponent, DatetimeDateRangePickerBasicExampleComponent, DatetimeDateRangePickerCustomCalculatorExampleComponent, DatetimeDateRangePickerHelpKeyExampleComponent, DatetimeDatepickerBasicExampleComponent, DatetimeDatepickerCustomDatesExampleComponent, DatetimeDatepickerFuzzyExampleComponent, DatetimeTimepickerBasicExampleComponent, ErrorsErrorEmbeddedExampleComponent, ErrorsErrorModalExampleComponent, FilterBarLookupExampleComponent, FilterBarModalExampleComponent, FilterBarSelectableExampleComponent, FlyoutBasicExampleComponent, FlyoutCustomHeadersExampleComponent, FormsCharacterCountExampleComponent, FormsCheckboxBasicExampleComponent, FormsCheckboxHelpKeyExampleComponent, FormsCheckboxIconGroupExampleComponent, FormsFieldGroupBasicExampleComponent, FormsFieldGroupHelpKeyExampleComponent, FormsFileAttachmentBasicExampleComponent, FormsFileAttachmentHelpKeyExampleComponent, FormsFileDropBasicExampleComponent, FormsFileDropHelpKeyExampleComponent, FormsInputBoxBasicExampleComponent, FormsInputBoxWithCustomFormErrorsExampleComponent, FormsRadioHelpKeyExampleComponent, FormsRadioIconExampleComponent, FormsRadioStandardExampleComponent, FormsSelectionBoxCheckboxExampleComponent, FormsSelectionBoxRadioExampleComponent, FormsToggleSwitchBasicExampleComponent, FormsToggleSwitchHelpKeyExampleComponent, HelpInlineActionClickExampleComponent, HelpInlineHelpKeyExampleComponent, HelpInlinePopoverExampleComponent, IconBasicExampleComponent, IconIconButtonExampleComponent, IndicatorsAlertBasicExampleComponent, IndicatorsIllustrationBasicExampleComponent, IndicatorsKeyInfoBasicExampleComponent, IndicatorsKeyInfoHelpKeyExampleComponent, IndicatorsLabelBasicExampleComponent, IndicatorsStatusIndicatorBasicExampleComponent, IndicatorsStatusIndicatorHelpKeyExampleComponent, IndicatorsTextHighlightBasicExampleComponent, IndicatorsTokensBasicExampleComponent, IndicatorsTokensCustomExampleComponent, IndicatorsWaitElementExampleComponent, IndicatorsWaitPageExampleComponent, InlineFormBasicExampleComponent, InlineFormCustomButtonsExampleComponent, InlineFormRepeatersExampleComponent, LayoutActionButtonBasicExampleComponent, LayoutActionButtonPermalinkExampleComponent, LayoutBackToTopInfiniteScrollExampleComponent, LayoutBackToTopRepeaterExampleComponent, LayoutBoxBasicExampleComponent, LayoutBoxHelpKeyExampleComponent, LayoutCardBasicExampleComponent, LayoutDefinitionListBasicExampleComponent, LayoutDescriptionListHelpKeyExampleComponent, LayoutDescriptionListHorizontalExampleComponent, LayoutDescriptionListInlineHelpExampleComponent, LayoutDescriptionListLongDescriptionExampleComponent, LayoutDescriptionListVerticalExampleComponent, LayoutFluidGridExampleComponent, LayoutFormatExampleComponent, LayoutInlineDeleteCustomExampleComponent, LayoutInlineDeleteRepeaterExampleComponent, LayoutPageSummaryBasicExampleComponent, LayoutTextExpandInlineExampleComponent, LayoutTextExpandModalExampleComponent, LayoutTextExpandNewlineExampleComponent, LayoutTextExpandRepeaterExampleComponent, LayoutToolbarBasicExampleComponent, LayoutToolbarSectionedExampleComponent, ListsFilterInlineExampleComponent, ListsInfiniteScrollRepeaterExampleComponent, ListsListSummaryBasicExampleComponent, ListsPagingBasicExampleComponent, ListsPagingWithContentExampleComponent, ListsRepeaterAddRemoveExampleComponent, ListsRepeaterBasicExampleComponent, ListsRepeaterInlineFormExampleComponent, ListsSortBasicExampleComponent, LookupAddItemExampleComponent, LookupAutocompleteAdvancedExampleComponent, LookupAutocompleteAnyValueExampleComponent, LookupAutocompleteBasicExampleComponent, LookupAutocompleteCustomSearchExampleComponent, LookupAutocompleteSearchFiltersExampleComponent, LookupCountryFieldBasicExampleComponent, LookupCustomPickerExampleComponent, LookupMultiSelectExampleComponent, LookupResultTemplatesExampleComponent, LookupSearchBasicExampleComponent, LookupSelectionModalAddItemExampleComponent, LookupSelectionModalBasicExampleComponent, LookupSingleSelectExampleComponent, ModalsConfirmBasicWithControllerExampleComponent, ModalsConfirmBasicWithHarnessExampleComponent, ModalsModalBasicWithBannerExampleComponent, ModalsModalBasicWithControllerExampleComponent, ModalsModalBasicWithHarnessExampleComponent, ModalsModalBasicWithHarnessHelpKeyExampleComponent, ModalsModalWithErrorExampleComponent, NavbarExampleComponent, PagesActionHubExampleComponent, PagesPageDataManagerSplitViewFitLayoutExampleComponent, PagesPageHomePageBlocksLayoutExampleComponent, PagesPageListPageListLayoutExampleComponent, PagesPageListPageTabsLayoutExampleComponent, PagesPageRecordPageBlocksLayoutExampleComponent, PagesPageRecordPageTabsLayoutExampleComponent, PagesPageSplitViewPageFitLayoutExampleComponent, PhoneFieldBasicExampleComponent, PopoversDropdownBasicExampleComponent, PopoversPopoverBasicExampleComponent, PopoversPopoverProgrammaticExampleComponent, ProgressIndicatorPassiveIndicatorBasicExampleComponent, ProgressIndicatorWaterfallIndicatorBasicExampleComponent, ProgressIndicatorWizardBasicExampleComponent, RouterHrefBasicExampleComponent, SplitViewBasicExampleComponent, SplitViewPageBoundExampleComponent, TabsDynamicAddCloseExampleComponent, TabsDynamicExampleComponent, TabsSectionedFormModalExampleComponent, TabsStaticAddCloseExampleComponent, TabsStaticExampleComponent, TabsVerticalTabsBasicExampleComponent, TabsVerticalTabsGroupedExampleComponent, TabsVerticalTabsMixedExampleComponent, TabsWizardBasicExampleComponent, TextEditorExampleComponent, TextEditorHelpKeyExampleComponent, TextEditorRichTextDisplayExampleComponent, TilesBasicExampleComponent, ToastBasicExampleComponent, ToastCustomComponentExampleComponent, ValidationEmailValidationControlValidatorExampleComponent, ValidationEmailValidationDirectiveExampleComponent, ValidationUrlValidationControlValidatorExampleComponent, ValidationUrlValidationDirectiveExampleComponent };
15236
+ export { ActionBarsSummaryActionBarBasicExampleComponent, ActionBarsSummaryActionBarErrorExampleComponent, ActionBarsSummaryActionBarModalExampleComponent, ActionBarsSummaryActionBarTabExampleComponent, AgGridDataEntryGridBasicExampleComponent, AgGridDataEntryGridDataManagerAddedExampleComponent, AgGridDataEntryGridFocusExampleComponent, AgGridDataEntryGridInlineHelpExampleComponent, AgGridDataGridBasicExampleComponent, AgGridDataGridBasicMultiselectExampleComponent, AgGridDataGridDataManagerExampleComponent, AgGridDataGridDataManagerMultiselectExampleComponent, AgGridDataGridInlineHelpExampleComponent, AgGridDataGridPagingExampleComponent, AgGridDataGridTemplateRefColumnExampleComponent, AgGridDataGridTopScrollExampleComponent, AngularTreeComponentAngularTreeBasicExampleComponent, AngularTreeComponentAngularTreeHelpKeyExampleComponent, AngularTreeComponentAngularTreePreselectedNodesExampleComponent, AutonumericCurrencyExampleComponent, AutonumericInternationalFormattingExampleComponent, AutonumericOptionsProviderExampleComponent, AutonumericPresetExampleComponent, AvatarExampleComponent, ChartsChartBarAsyncExample, ChartsChartBarBasicExample, ChartsChartBarFloatingExample, ChartsChartBarFloatingMultipleSeriesExample, ChartsChartBarGroupedStackedExample, ChartsChartBarHiddenLabelsExample, ChartsChartBarHorizontalExample, ChartsChartBarLogarithmicExample, ChartsChartBarMultipleSeriesExample, ChartsChartBarStackedExample, ChartsChartBarValueBoundsExample, ChartsChartBarValueFormatExample, ColorpickerBasicExampleComponent, ColorpickerHelpKeyExampleComponent, ColorpickerProgrammaticExampleComponent, CoreIdExampleComponent, CoreMediaQueryBasicExampleComponent, CoreMediaQueryResponsiveHostExampleComponent, CoreNumericBasicExampleComponent, DataGridBasicExampleComponent, DataGridLoadingExampleComponent, DataGridPagingExampleComponent, DataGridSortingExampleComponent, DataManagerBasicExampleComponent, DatetimeDatePipeBasicExampleComponent, DatetimeDateRangePickerBasicExampleComponent, DatetimeDateRangePickerCustomCalculatorExampleComponent, DatetimeDateRangePickerHelpKeyExampleComponent, DatetimeDatepickerBasicExampleComponent, DatetimeDatepickerCustomDatesExampleComponent, DatetimeDatepickerFuzzyExampleComponent, DatetimeTimepickerBasicExampleComponent, ErrorsErrorEmbeddedExampleComponent, ErrorsErrorModalExampleComponent, FilterBarLookupExampleComponent, FilterBarModalExampleComponent, FilterBarSelectableExampleComponent, FlyoutBasicExampleComponent, FlyoutCustomHeadersExampleComponent, FormsCharacterCountExampleComponent, FormsCheckboxBasicExampleComponent, FormsCheckboxHelpKeyExampleComponent, FormsCheckboxIconGroupExampleComponent, FormsFieldGroupBasicExampleComponent, FormsFieldGroupHelpKeyExampleComponent, FormsFileAttachmentBasicExampleComponent, FormsFileAttachmentHelpKeyExampleComponent, FormsFileDropBasicExampleComponent, FormsFileDropHelpKeyExampleComponent, FormsInputBoxBasicExampleComponent, FormsInputBoxWithCustomFormErrorsExampleComponent, FormsRadioHelpKeyExampleComponent, FormsRadioIconExampleComponent, FormsRadioStandardExampleComponent, FormsSelectionBoxCheckboxExampleComponent, FormsSelectionBoxRadioExampleComponent, FormsToggleSwitchBasicExampleComponent, FormsToggleSwitchHelpKeyExampleComponent, HelpInlineActionClickExampleComponent, HelpInlineHelpKeyExampleComponent, HelpInlinePopoverExampleComponent, IconBasicExampleComponent, IconIconButtonExampleComponent, IndicatorsAlertBasicExampleComponent, IndicatorsIllustrationBasicExampleComponent, IndicatorsKeyInfoBasicExampleComponent, IndicatorsKeyInfoHelpKeyExampleComponent, IndicatorsLabelBasicExampleComponent, IndicatorsStatusIndicatorBasicExampleComponent, IndicatorsStatusIndicatorHelpKeyExampleComponent, IndicatorsTextHighlightBasicExampleComponent, IndicatorsTokensBasicExampleComponent, IndicatorsTokensCustomExampleComponent, IndicatorsWaitElementExampleComponent, IndicatorsWaitPageExampleComponent, InlineFormBasicExampleComponent, InlineFormCustomButtonsExampleComponent, InlineFormRepeatersExampleComponent, LayoutActionButtonBasicExampleComponent, LayoutActionButtonPermalinkExampleComponent, LayoutBackToTopInfiniteScrollExampleComponent, LayoutBackToTopRepeaterExampleComponent, LayoutBoxBasicExampleComponent, LayoutBoxHelpKeyExampleComponent, LayoutCardBasicExampleComponent, LayoutDefinitionListBasicExampleComponent, LayoutDescriptionListHelpKeyExampleComponent, LayoutDescriptionListHorizontalExampleComponent, LayoutDescriptionListInlineHelpExampleComponent, LayoutDescriptionListLongDescriptionExampleComponent, LayoutDescriptionListVerticalExampleComponent, LayoutFluidGridExampleComponent, LayoutFormatExampleComponent, LayoutInlineDeleteCustomExampleComponent, LayoutInlineDeleteRepeaterExampleComponent, LayoutPageSummaryBasicExampleComponent, LayoutTextExpandInlineExampleComponent, LayoutTextExpandModalExampleComponent, LayoutTextExpandNewlineExampleComponent, LayoutTextExpandRepeaterExampleComponent, LayoutToolbarBasicExampleComponent, LayoutToolbarSectionedExampleComponent, ListsFilterInlineExampleComponent, ListsInfiniteScrollRepeaterExampleComponent, ListsListSummaryBasicExampleComponent, ListsPagingBasicExampleComponent, ListsPagingWithContentExampleComponent, ListsRepeaterAddRemoveExampleComponent, ListsRepeaterBasicExampleComponent, ListsRepeaterInlineFormExampleComponent, ListsSortBasicExampleComponent, LookupAddItemExampleComponent, LookupAutocompleteAdvancedExampleComponent, LookupAutocompleteAnyValueExampleComponent, LookupAutocompleteBasicExampleComponent, LookupAutocompleteCustomSearchExampleComponent, LookupAutocompleteSearchFiltersExampleComponent, LookupCountryFieldBasicExampleComponent, LookupCustomPickerExampleComponent, LookupMultiSelectExampleComponent, LookupResultTemplatesExampleComponent, LookupSearchBasicExampleComponent, LookupSelectionModalAddItemExampleComponent, LookupSelectionModalBasicExampleComponent, LookupSingleSelectExampleComponent, ModalsConfirmBasicWithControllerExampleComponent, ModalsConfirmBasicWithHarnessExampleComponent, ModalsModalBasicWithBannerExampleComponent, ModalsModalBasicWithControllerExampleComponent, ModalsModalBasicWithHarnessExampleComponent, ModalsModalBasicWithHarnessHelpKeyExampleComponent, ModalsModalWithErrorExampleComponent, NavbarExampleComponent, PagesActionHubExampleComponent, PagesPageDataManagerSplitViewFitLayoutExampleComponent, PagesPageHomePageBlocksLayoutExampleComponent, PagesPageListPageListLayoutExampleComponent, PagesPageListPageTabsLayoutExampleComponent, PagesPageRecordPageBlocksLayoutExampleComponent, PagesPageRecordPageTabsLayoutExampleComponent, PagesPageSplitViewPageFitLayoutExampleComponent, PhoneFieldBasicExampleComponent, PopoversDropdownBasicExampleComponent, PopoversPopoverBasicExampleComponent, PopoversPopoverProgrammaticExampleComponent, ProgressIndicatorPassiveIndicatorBasicExampleComponent, ProgressIndicatorWaterfallIndicatorBasicExampleComponent, ProgressIndicatorWizardBasicExampleComponent, RouterHrefBasicExampleComponent, SplitViewBasicExampleComponent, SplitViewPageBoundExampleComponent, TabsDynamicAddCloseExampleComponent, TabsDynamicExampleComponent, TabsSectionedFormModalExampleComponent, TabsStaticAddCloseExampleComponent, TabsStaticExampleComponent, TabsVerticalTabsBasicExampleComponent, TabsVerticalTabsGroupedExampleComponent, TabsVerticalTabsMixedExampleComponent, TabsWizardBasicExampleComponent, TextEditorExampleComponent, TextEditorHelpKeyExampleComponent, TextEditorRichTextDisplayExampleComponent, TilesBasicExampleComponent, ToastBasicExampleComponent, ToastCustomComponentExampleComponent, ValidationEmailValidationControlValidatorExampleComponent, ValidationEmailValidationDirectiveExampleComponent, ValidationUrlValidationControlValidatorExampleComponent, ValidationUrlValidationDirectiveExampleComponent };
14868
15237
  //# sourceMappingURL=skyux-code-examples.mjs.map