@progress/kendo-angular-chart-wizard 16.6.3-develop.1 → 16.7.0-develop.1

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.
@@ -10,7 +10,9 @@ import { ExpansionPanelComponent } from '@progress/kendo-angular-layout';
10
10
  import { LabelComponent } from '@progress/kendo-angular-label';
11
11
  import { SwitchComponent } from '@progress/kendo-angular-inputs';
12
12
  import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
13
+ import { defaultAllSeriesItem, defaultFormat, labelFormats } from '../common/models';
13
14
  import { LocalizationService } from '@progress/kendo-angular-l10n';
15
+ import { NgIf } from '@angular/common';
14
16
  import * as i0 from "@angular/core";
15
17
  import * as i1 from "../state.service";
16
18
  import * as i2 from "@progress/kendo-angular-l10n";
@@ -60,10 +62,13 @@ export class ChartWizardPropertyPaneDataTabComponent {
60
62
  this.valueAxisTitleFontSize = ActionTypes.valueAxisTitleFontSize;
61
63
  this.valueAxisTitleColor = ActionTypes.valueAxisTitleColor;
62
64
  this.valueAxisLabelsFontName = ActionTypes.valueAxisLabelsFontName;
65
+ this.valueAxisLabelsFormat = ActionTypes.valueAxisLabelsFormat;
63
66
  this.valueAxisLabelsFontSize = ActionTypes.valueAxisLabelsFontSize;
64
67
  this.valueAxisLabelsColor = ActionTypes.valueAxisLabelsColor;
65
68
  this.valueAxisLabelsRotation = ActionTypes.valueAxisLabelsRotation;
66
69
  this.parseFont = parseFont;
70
+ this.labelFormats = labelFormats;
71
+ this.defaultAllSeriesItem = defaultAllSeriesItem;
67
72
  this.fontNames = fontNames;
68
73
  this.fontSizes = fontSizes;
69
74
  this.legendPositions = positions;
@@ -101,6 +106,15 @@ export class ChartWizardPropertyPaneDataTabComponent {
101
106
  get chartTitleTypeFontSizeAction() {
102
107
  return this.stateService.currentTitle === 'Chart Title' ? this.titleFontSize : this.subtitleFontSize;
103
108
  }
109
+ get seriesData() {
110
+ return [defaultAllSeriesItem, ...this.stateService.state.series];
111
+ }
112
+ get showLabels() {
113
+ return this.stateService.currentSeries.name !== defaultAllSeriesItem.name ? this.stateService.state.series.find(s => s.name === this.stateService.currentSeries.name)?.labels?.visible : this.stateService.state.series.every(s => s.labels?.visible);
114
+ }
115
+ get labelFormatValue() {
116
+ return labelFormats.find(f => f.value === this.stateService.state.valueAxis[0]?.labels?.format)?.value || defaultFormat.value;
117
+ }
104
118
  ngAfterViewChecked() {
105
119
  this.localization.changes.subscribe(() => {
106
120
  this.cdr.detectChanges();
@@ -110,6 +124,10 @@ export class ChartWizardPropertyPaneDataTabComponent {
110
124
  this.localization.changes.unsubscribe();
111
125
  }
112
126
  updateState(action, value) {
127
+ if (action === this.seriesLabel && this.stateService.currentSeries.name === defaultAllSeriesItem.name) {
128
+ this.stateService.state = updateState(this.stateService.state, action, { name: '', all: true, visible: value.labels.visible });
129
+ return;
130
+ }
113
131
  this.stateService.state = updateState(this.stateService.state, action, value);
114
132
  }
115
133
  changeCurrentTitle(value) {
@@ -121,29 +139,26 @@ export class ChartWizardPropertyPaneDataTabComponent {
121
139
  this.updateState(this.seriesLabel, this.stateService.currentSeries);
122
140
  }
123
141
  updateCurrentSeries(value) {
124
- this.stateService.currentSeries = this.stateService.state.series.find((series) => series.name === value.name);
142
+ if (value.name === defaultAllSeriesItem.name) {
143
+ this.stateService.currentSeries = defaultAllSeriesItem;
144
+ }
145
+ else {
146
+ this.stateService.currentSeries = this.stateService.state.series.find((series) => series.name === value.name);
147
+ }
125
148
  }
126
149
  updateSeriesColor(value) {
127
150
  this.updateCurrentSeries(this.stateService.currentSeries);
128
151
  this.stateService.currentSeries.color = value;
129
152
  this.updateState(this.seriesColor, this.stateService.currentSeries);
130
153
  }
131
- onExpandedChange(panel, expanded) {
132
- expanded
133
- ? (this.stateService.currentFormatExpansionPanel = panel)
134
- : (this.stateService.currentFormatExpansionPanel = null);
135
- }
136
- isExpanded(panel) {
137
- return this.stateService.currentFormatExpansionPanel === panel;
138
- }
139
154
  }
140
155
  ChartWizardPropertyPaneDataTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneDataTabComponent, deps: [{ token: i1.StateService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
141
156
  ChartWizardPropertyPaneDataTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWizardPropertyPaneDataTabComponent, isStandalone: true, selector: "kendo-chartwizard-property-pane-format-tab", ngImport: i0, template: `
142
157
  <section>
143
158
  <kendo-expansionpanel
159
+ [style.max-width.px]="576"
144
160
  title="Chart Area"
145
- [expanded]="isExpanded('Chart Area')"
146
- (expandedChange)="onExpandedChange('Chart Area', $event)"
161
+ [expanded]="true"
147
162
  [attr.dir]="stateService.direction"
148
163
  >
149
164
  <form class="k-form k-form-md">
@@ -195,9 +210,9 @@ ChartWizardPropertyPaneDataTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minV
195
210
  </section>
196
211
  <section>
197
212
  <kendo-expansionpanel
213
+ [style.max-width.px]="576"
198
214
  title="Title"
199
- [expanded]="isExpanded('Title')"
200
- (expandedChange)="onExpandedChange('Title', $event)"
215
+ [expanded]="true"
201
216
  >
202
217
  <form class="k-form k-form-md">
203
218
  <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
@@ -250,9 +265,9 @@ ChartWizardPropertyPaneDataTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minV
250
265
  </section>
251
266
  <section>
252
267
  <kendo-expansionpanel
268
+ [style.max-width.px]="576"
253
269
  title="Legend"
254
- [expanded]="isExpanded('Legend')"
255
- (expandedChange)="onExpandedChange('Legend', $event)"
270
+ [expanded]="true"
256
271
  >
257
272
  <form class="k-form k-form-md">
258
273
  <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
@@ -307,9 +322,9 @@ ChartWizardPropertyPaneDataTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minV
307
322
  </section>
308
323
  <section>
309
324
  <kendo-expansionpanel
325
+ [style.max-width.px]="576"
310
326
  title="Series"
311
- [expanded]="isExpanded('Series')"
312
- (expandedChange)="onExpandedChange('Series', $event)"
327
+ [expanded]="true"
313
328
  >
314
329
  <form class="k-form k-form-md">
315
330
  <div class="k-form-field">
@@ -317,7 +332,7 @@ ChartWizardPropertyPaneDataTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minV
317
332
  <div class="k-form-field-wrap">
318
333
  <kendo-dropdownlist
319
334
  #seriesDropDown
320
- [data]="stateService.state.series"
335
+ [data]="seriesData"
321
336
  textField="name"
322
337
  valueField="name"
323
338
  fillMode="outline"
@@ -333,12 +348,13 @@ ChartWizardPropertyPaneDataTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minV
333
348
  text="Color"
334
349
  [value]="stateService.currentSeries?.color"
335
350
  inputType="colorPicker"
351
+ [disabled]="stateService.currentSeries.name === defaultAllSeriesItem.name"
336
352
  (valueChange)="updateSeriesColor($event)"
337
353
  >
338
354
  </kendo-chartwizard-property-pane-form-field>
339
355
  <kendo-chartwizard-property-pane-form-field
340
356
  text="Show Labels"
341
- [value]="stateService.currentSeries.labels?.visible"
357
+ [value]="showLabels"
342
358
  [isLabelInsideFormFieldWrap]="true"
343
359
  inputType="checkbox"
344
360
  (valueChange)="toggleSeriesLabels($event)"
@@ -347,11 +363,11 @@ ChartWizardPropertyPaneDataTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minV
347
363
  </form>
348
364
  </kendo-expansionpanel>
349
365
  </section>
350
- <section class="k-row-start-1 k-row-end-3 k-col-start-3">
366
+ <section *ngIf="stateService.seriesType !== 'pie'" class="k-row-start-1 k-row-end-3 k-col-start-3">
351
367
  <kendo-expansionpanel
352
- title="Category axis"
353
- [expanded]="isExpanded('Category Axis')"
354
- (expandedChange)="onExpandedChange('Category Axis', $event)"
368
+ [style.max-width.px]="576"
369
+ [title]="stateService.seriesType === 'scatter' ? 'X Axis' : 'Category axis'"
370
+ [expanded]="true"
355
371
  >
356
372
  <form class="k-form k-form-md">
357
373
  <fieldset class="k-form-fieldset">
@@ -362,7 +378,7 @@ ChartWizardPropertyPaneDataTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minV
362
378
  [hasLabel]="false"
363
379
  [colSpan]="2"
364
380
  placeholder="Axis Title"
365
- [value]="stateService.state.categoryAxis[0]?.title?.text"
381
+ [value]="stateService.state.categoryAxis[0]?.title?.text || null"
366
382
  (valueChange)="updateState(categoryAxisTitleText, $event)"
367
383
  >
368
384
  </kendo-chartwizard-property-pane-form-field>
@@ -445,11 +461,11 @@ ChartWizardPropertyPaneDataTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minV
445
461
  </form>
446
462
  </kendo-expansionpanel>
447
463
  </section>
448
- <section class="k-row-start-1 k-row-end-3 k-col-start-4">
464
+ <section *ngIf="stateService.seriesType !== 'pie'" class="k-row-start-1 k-row-end-3 k-col-start-4">
449
465
  <kendo-expansionpanel
450
- title="Value axis"
451
- [expanded]="isExpanded('Value Axis')"
452
- (expandedChange)="onExpandedChange('Value Axis', $event)"
466
+ [style.max-width.px]="576"
467
+ [title]="stateService.seriesType === 'scatter' ? 'Y Axis' : 'Value axis'"
468
+ [expanded]="true"
453
469
  >
454
470
  <form class="k-form k-form-md">
455
471
  <fieldset class="k-form-fieldset">
@@ -460,7 +476,7 @@ ChartWizardPropertyPaneDataTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minV
460
476
  [hasLabel]="false"
461
477
  [colSpan]="2"
462
478
  placeholder="Axis Title"
463
- [value]="stateService.state.valueAxis[0]?.title?.text"
479
+ [value]="stateService.state.valueAxis[0]?.title?.text || null"
464
480
  (valueChange)="updateState(valueAxisTitleText, $event)"
465
481
  >
466
482
  </kendo-chartwizard-property-pane-form-field>
@@ -495,6 +511,15 @@ ChartWizardPropertyPaneDataTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minV
495
511
  <fieldset class="k-form-fieldset">
496
512
  <legend class="k-form-legend">Labels</legend>
497
513
  <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
514
+ <kendo-chartwizard-property-pane-form-field
515
+ text="Label Format"
516
+ [colSpan]="2"
517
+ inputType="dropDownList"
518
+ [data]="labelFormats"
519
+ [value]="labelFormatValue"
520
+ (valueChange)="updateState(valueAxisLabelsFormat, $event)"
521
+ >
522
+ </kendo-chartwizard-property-pane-form-field>
498
523
  <kendo-chartwizard-property-pane-form-field
499
524
  text="Font"
500
525
  inputType="comboBox"
@@ -533,7 +558,7 @@ ChartWizardPropertyPaneDataTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minV
533
558
  </form>
534
559
  </kendo-expansionpanel>
535
560
  </section>
536
- `, isInline: true, dependencies: [{ kind: "component", type: ExpansionPanelComponent, selector: "kendo-expansionpanel", inputs: ["title", "subtitle", "disabled", "expanded", "svgExpandIcon", "svgCollapseIcon", "expandIcon", "collapseIcon", "animation"], outputs: ["expandedChange", "action", "expand", "collapse"], exportAs: ["kendoExpansionPanel"] }, { kind: "component", type: ChartWizardPropertyPaneFormFieldComponent, selector: "kendo-chartwizard-property-pane-form-field", inputs: ["currentState", "action", "class", "inputType", "text", "data", "placeholder", "colSpan", "hasLabel", "isLabelInsideFormFieldWrap", "value"], outputs: ["valueChange"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "component", type: SwitchComponent, selector: "kendo-switch", inputs: ["focusableId", "onLabel", "offLabel", "checked", "disabled", "readonly", "tabindex", "size", "thumbRounded", "trackRounded", "tabIndex"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoSwitch"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
561
+ `, isInline: true, dependencies: [{ kind: "component", type: ExpansionPanelComponent, selector: "kendo-expansionpanel", inputs: ["title", "subtitle", "disabled", "expanded", "svgExpandIcon", "svgCollapseIcon", "expandIcon", "collapseIcon", "animation"], outputs: ["expandedChange", "action", "expand", "collapse"], exportAs: ["kendoExpansionPanel"] }, { kind: "component", type: ChartWizardPropertyPaneFormFieldComponent, selector: "kendo-chartwizard-property-pane-form-field", inputs: ["currentState", "action", "class", "inputType", "text", "data", "placeholder", "colSpan", "hasLabel", "isLabelInsideFormFieldWrap", "value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "component", type: SwitchComponent, selector: "kendo-switch", inputs: ["focusableId", "onLabel", "offLabel", "checked", "disabled", "readonly", "tabindex", "size", "thumbRounded", "trackRounded", "tabIndex"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoSwitch"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
537
562
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneDataTabComponent, decorators: [{
538
563
  type: Component,
539
564
  args: [{
@@ -542,9 +567,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
542
567
  template: `
543
568
  <section>
544
569
  <kendo-expansionpanel
570
+ [style.max-width.px]="576"
545
571
  title="Chart Area"
546
- [expanded]="isExpanded('Chart Area')"
547
- (expandedChange)="onExpandedChange('Chart Area', $event)"
572
+ [expanded]="true"
548
573
  [attr.dir]="stateService.direction"
549
574
  >
550
575
  <form class="k-form k-form-md">
@@ -596,9 +621,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
596
621
  </section>
597
622
  <section>
598
623
  <kendo-expansionpanel
624
+ [style.max-width.px]="576"
599
625
  title="Title"
600
- [expanded]="isExpanded('Title')"
601
- (expandedChange)="onExpandedChange('Title', $event)"
626
+ [expanded]="true"
602
627
  >
603
628
  <form class="k-form k-form-md">
604
629
  <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
@@ -651,9 +676,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
651
676
  </section>
652
677
  <section>
653
678
  <kendo-expansionpanel
679
+ [style.max-width.px]="576"
654
680
  title="Legend"
655
- [expanded]="isExpanded('Legend')"
656
- (expandedChange)="onExpandedChange('Legend', $event)"
681
+ [expanded]="true"
657
682
  >
658
683
  <form class="k-form k-form-md">
659
684
  <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
@@ -708,9 +733,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
708
733
  </section>
709
734
  <section>
710
735
  <kendo-expansionpanel
736
+ [style.max-width.px]="576"
711
737
  title="Series"
712
- [expanded]="isExpanded('Series')"
713
- (expandedChange)="onExpandedChange('Series', $event)"
738
+ [expanded]="true"
714
739
  >
715
740
  <form class="k-form k-form-md">
716
741
  <div class="k-form-field">
@@ -718,7 +743,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
718
743
  <div class="k-form-field-wrap">
719
744
  <kendo-dropdownlist
720
745
  #seriesDropDown
721
- [data]="stateService.state.series"
746
+ [data]="seriesData"
722
747
  textField="name"
723
748
  valueField="name"
724
749
  fillMode="outline"
@@ -734,12 +759,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
734
759
  text="Color"
735
760
  [value]="stateService.currentSeries?.color"
736
761
  inputType="colorPicker"
762
+ [disabled]="stateService.currentSeries.name === defaultAllSeriesItem.name"
737
763
  (valueChange)="updateSeriesColor($event)"
738
764
  >
739
765
  </kendo-chartwizard-property-pane-form-field>
740
766
  <kendo-chartwizard-property-pane-form-field
741
767
  text="Show Labels"
742
- [value]="stateService.currentSeries.labels?.visible"
768
+ [value]="showLabels"
743
769
  [isLabelInsideFormFieldWrap]="true"
744
770
  inputType="checkbox"
745
771
  (valueChange)="toggleSeriesLabels($event)"
@@ -748,11 +774,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
748
774
  </form>
749
775
  </kendo-expansionpanel>
750
776
  </section>
751
- <section class="k-row-start-1 k-row-end-3 k-col-start-3">
777
+ <section *ngIf="stateService.seriesType !== 'pie'" class="k-row-start-1 k-row-end-3 k-col-start-3">
752
778
  <kendo-expansionpanel
753
- title="Category axis"
754
- [expanded]="isExpanded('Category Axis')"
755
- (expandedChange)="onExpandedChange('Category Axis', $event)"
779
+ [style.max-width.px]="576"
780
+ [title]="stateService.seriesType === 'scatter' ? 'X Axis' : 'Category axis'"
781
+ [expanded]="true"
756
782
  >
757
783
  <form class="k-form k-form-md">
758
784
  <fieldset class="k-form-fieldset">
@@ -763,7 +789,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
763
789
  [hasLabel]="false"
764
790
  [colSpan]="2"
765
791
  placeholder="Axis Title"
766
- [value]="stateService.state.categoryAxis[0]?.title?.text"
792
+ [value]="stateService.state.categoryAxis[0]?.title?.text || null"
767
793
  (valueChange)="updateState(categoryAxisTitleText, $event)"
768
794
  >
769
795
  </kendo-chartwizard-property-pane-form-field>
@@ -846,11 +872,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
846
872
  </form>
847
873
  </kendo-expansionpanel>
848
874
  </section>
849
- <section class="k-row-start-1 k-row-end-3 k-col-start-4">
875
+ <section *ngIf="stateService.seriesType !== 'pie'" class="k-row-start-1 k-row-end-3 k-col-start-4">
850
876
  <kendo-expansionpanel
851
- title="Value axis"
852
- [expanded]="isExpanded('Value Axis')"
853
- (expandedChange)="onExpandedChange('Value Axis', $event)"
877
+ [style.max-width.px]="576"
878
+ [title]="stateService.seriesType === 'scatter' ? 'Y Axis' : 'Value axis'"
879
+ [expanded]="true"
854
880
  >
855
881
  <form class="k-form k-form-md">
856
882
  <fieldset class="k-form-fieldset">
@@ -861,7 +887,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
861
887
  [hasLabel]="false"
862
888
  [colSpan]="2"
863
889
  placeholder="Axis Title"
864
- [value]="stateService.state.valueAxis[0]?.title?.text"
890
+ [value]="stateService.state.valueAxis[0]?.title?.text || null"
865
891
  (valueChange)="updateState(valueAxisTitleText, $event)"
866
892
  >
867
893
  </kendo-chartwizard-property-pane-form-field>
@@ -896,6 +922,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
896
922
  <fieldset class="k-form-fieldset">
897
923
  <legend class="k-form-legend">Labels</legend>
898
924
  <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
925
+ <kendo-chartwizard-property-pane-form-field
926
+ text="Label Format"
927
+ [colSpan]="2"
928
+ inputType="dropDownList"
929
+ [data]="labelFormats"
930
+ [value]="labelFormatValue"
931
+ (valueChange)="updateState(valueAxisLabelsFormat, $event)"
932
+ >
933
+ </kendo-chartwizard-property-pane-form-field>
899
934
  <kendo-chartwizard-property-pane-form-field
900
935
  text="Font"
901
936
  inputType="comboBox"
@@ -941,7 +976,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
941
976
  ChartWizardPropertyPaneFormFieldComponent,
942
977
  LabelComponent,
943
978
  SwitchComponent,
944
- DropDownListComponent
979
+ DropDownListComponent,
980
+ NgIf
945
981
  ]
946
982
  }]
947
983
  }], ctorParameters: function () { return [{ type: i1.StateService }, { type: i2.LocalizationService }, { type: i0.ChangeDetectorRef }]; } });
@@ -3,6 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Injectable } from "@angular/core";
6
+ import { defaultAllSeriesItem } from "./common/models";
6
7
  import * as i0 from "@angular/core";
7
8
  /**
8
9
  * @hidden
@@ -19,7 +20,7 @@ export class StateService {
19
20
  };
20
21
  this.seriesType = 'bar';
21
22
  this.currentTitle = 'Chart Title';
22
- this.currentSeries = {};
23
+ this.currentSeries = defaultAllSeriesItem;
23
24
  this.data = [];
24
25
  this.deletedSeries = [];
25
26
  this.direction = 'ltr';