2 <div *ngIf="hideChart">
3 <div class="tab-content">
4 <h3>Chart Wizard Disabled</h3>
7 <div *ngIf="!hideChart">
8 <span class="ecomp-spinner" *ngIf="showSpinner"></span>
9 <div *ngIf="!showSpinner" class="stdForm">
10 <div class="tab-content">
11 <h3>Step 5 - Chart Wizard Configuration</h3>
14 <div class="field-group">
15 <label class="checkbox" for="animation1">
16 <input [(ngModel)]="chartJson.commonChartOptions.animateAnimatedChart" class="defaultFontSize" id="animation1" type="checkbox">
17 <i class="skin"></i><span>Animation</span>
21 <div class="field-group">
22 <label class="checkbox" for="title">
23 <input [(ngModel)]="chartJson.showTitle" class="defaultFontSize" id="title" type="checkbox">
24 <i class="skin"></i><span>Show Title</span>
28 <div class="field-group">
32 <th style="width: 50px"><span>Width (px)</span></th>
33 <th style="width: 50px">Height (px)</th>
38 <td><label for="width2">
39 <input [(ngModel)]="chartJson.width" class="defaultFontSize" id="width2" name="displayName"
40 style="width: 100px;" type="text" appNumbersOnly>
42 <td><label for="height1">
43 <input [(ngModel)]="chartJson.height" class="defaultFontSize" id="height1" name="displayName"
44 style="width: 100px;" type="text" appNumbersOnly>
50 <div class="field-group">
52 <mat-label class="b2b-dro">Chart Type:</mat-label>
53 <mat-select data-select-color="blue" [(ngModel)]="chartJson.chartType" aria-label="reportType" placeholder="Select chart Type">
54 <mat-option value="BarChart3D" (onSelectionChange)="setBarChartOptions()">Bar Chart</mat-option>
55 <mat-option value="TimeSeriesChart" (onSelectionChange)="setTimeSeriesChartOptions()">Time Series/Area Chart</mat-option>
56 <mat-option value="PieChart">Pie Chart</mat-option>
57 <mat-option value="AnnotationChart">Annotation Chart</mat-option>
58 <mat-option value="FlexTimeChart">Flexible Time Chart</mat-option>
63 <mat-label class="lable">Domain Axis</mat-label>
64 <mat-select [(ngModel)]="chartJson.domainAxisJSON.value" aria-label="domain axis">
65 <mat-option *ngFor="let d of chartJson.chartColumnJSONList"
66 value="{{d.value}}">{{d.title}}</mat-option>
71 <mat-label class="lable">Category</mat-label>
72 <mat-select [(ngModel)]="chartJson.categoryAxis" aria-label="category axis">
73 <mat-option>None</mat-option>
74 <mat-option *ngFor="let d of chartJson.chartColumnJSONList"
75 value="{{d.value}}">{{d.title}}</mat-option>
84 <th width="18%">Range Axis</th>
85 <th width="15%">Y Axis</th>
86 <th width="15%">Chart Title</th>
87 <th width="22%">Color</th>
88 <th width="25%">Line Type</th>
92 <tbody *ngFor="let rangeReport of chartJson.rangeAxisList">
96 <mat-select [(ngModel)]="rangeReport.rangeAxisLabelJSON.value" aria-label="category axis">
97 <mat-option *ngFor="let d of chartJson.chartColumnJSONList"
98 value="{{d.value}}">{{d.title}}</mat-option>
103 <input [(ngModel)]="rangeReport.rangeYAxis" class="defaultFontSize1" id="rangeAxis" name="displayName"
107 <input [(ngModel)]="rangeReport.rangeChartGroup" class="defaultFontSize1" id="rangeChartGroup" name="displayName"
112 <mat-label class="lable">Select Color</mat-label>
113 <mat-select [(ngModel)]="rangeReport.rangeColorJSON.value" aria-label="category axis">
114 <mat-option *ngFor="let d of rangeColors"
115 value="{{d.value}}">{{d.title}}</mat-option>
121 <mat-label class="lable">Select Line Type</mat-label>
122 <mat-select [(ngModel)]="rangeReport.rangeLineTypeJSON.value" aria-label="category axis">
123 <mat-option *ngFor="let d of lineTypes"
124 value="{{d.value}}">{{d.title}}</mat-option>
129 <button (click)="removeRangeAxisRow(rangeReport)" class="btn btn-alt btn-small"
130 ng-if="rangeReport.removed!='true'"
131 type="submit">Remove</button>
136 <div align="right" style="margin-right:20px">
137 <button (click)="addRangeAxisRow()" class="btn btn-alt btn-small" style="font-size: 17px;">Add</button>
141 <div class="form-group">
143 <mat-expansion-panel>
144 <mat-expansion-panel-header>
148 <mat-panel-description>
149 Set Additional Chart Properties
150 </mat-panel-description>
151 </mat-expansion-panel-header>
152 <div class="field-group">
156 <th style="width: 30%"><span>Primary Axis Label</span></th>
157 <th style="width: 30%">Secondary Axis Label</th>
162 <td><label for="primaryAxisLabel">
163 <input [(ngModel)]="chartJson.primaryAxisLabel" class="defaultFontSize" id="primaryAxisLabel" name="displayName"
164 style="width: 200px;" type="text">
166 <td><label for="secondaryAxisLabel">
167 <input [(ngModel)]="chartJson.secondaryAxisLabel" class="defaultFontSize" id="secondaryAxisLabel" name="displayName"
168 style="width: 200px;" type="text">
174 <div class="field-group">
178 <th style="width: 30%"><span>Range Axis Minimum Range</span></th>
179 <th style="width: 30%">Maximum Range</th>
184 <td><label for="width1">
185 <input [(ngModel)]="chartJson.minRange" class="defaultFontSize" id="width1" name="displayName"
186 style="width: 200px;" type="text">
188 <td><label for="height">
189 <input [(ngModel)]="chartJson.maxRange" class="defaultFontSize" id="height" name="displayName"
190 style="width: 200px;" type="text">
197 </mat-expansion-panel>
199 <mat-expansion-panel>
200 <mat-expansion-panel-header>
204 <mat-panel-description>
205 Set Common chart Options
206 </mat-panel-description>
207 </mat-expansion-panel-header>
213 <th>Legend Position</th>
219 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.commonChartOptions.legendLabelAngle" >
220 <mat-radio-button value ="up45">up 45°</mat-radio-button>
221 <mat-radio-button value ='up90'>up 90°</mat-radio-button>
222 <mat-radio-button value ='down45'>down 45°</mat-radio-button>
223 <mat-radio-button value ='down90'>down 90°</mat-radio-button>
224 <mat-radio-button value ='standard'>Standard</mat-radio-button>
228 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.commonChartOptions.legendPosition" >
229 <mat-radio-button value ="top">Top</mat-radio-button>
230 <mat-radio-button value ='right'>Right</mat-radio-button>
239 <th width="20%">Legend</th>
240 <th width="20%">Animation</th>
247 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.commonChartOptions.hideLegend" >
248 <mat-radio-button [value]='false'>Yes</mat-radio-button>
249 <mat-radio-button [value]='true'>No</mat-radio-button>
253 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.commonChartOptions.animateAnimatedChart" >
254 <mat-radio-button [value]='true'>Yes</mat-radio-button>
255 <mat-radio-button [value]='false'>No</mat-radio-button>
265 <th width="25%">Top Margin</th>
266 <th width="25%">Bottom Margin</th>
267 <th width="25%">Left Margin</th>
268 <th width="25%">Right Margin</th>
274 <input [(ngModel)]="chartJson.commonChartOptions.topMargin" class="defaultFontSize1" id="topMargin" name="displayName"
275 type="text" appNumbersOnly>
278 <input [(ngModel)]="chartJson.commonChartOptions.bottomMargin" class="defaultFontSize1" id="bottomMargin" name="displayName"
279 type="text" appNumbersOnly>
282 <input [(ngModel)]="chartJson.commonChartOptions.leftMargin" class="defaultFontSize1" id="leftMargin" name="displayName"
283 type="text" appNumbersOnly>
286 <input [(ngModel)]="chartJson.commonChartOptions.rightMargin" class="defaultFontSize1" id="rightMargin" name="displayName"
287 type="text" appNumbersOnly>
293 </mat-expansion-panel>
295 <mat-expansion-panel *ngIf="chartJson.chartType=='BarChart3D'">
296 <mat-expansion-panel-header>
300 <mat-panel-description>
301 Set Bar chart Options
302 </mat-panel-description>
303 </mat-expansion-panel-header>
308 <th width="25%">Orientation</th>
309 <th width="18%">Stacked</th>
310 <th width="18%">Show Controls</th>
311 <th width="18%">XAxis Date Type</th>
312 <th width="21%">Display less XAxis tickers</th>
319 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.barChartOptions.verticalOrientation" >
320 <mat-radio-button [value]='true'>Vertical</mat-radio-button>
321 <mat-radio-button [value]='false'>Horizontal</mat-radio-button>
325 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.barChartOptions.stackedChart" >
326 <mat-radio-button [value]='true'>Yes</mat-radio-button>
327 <mat-radio-button [value]='false'>No</mat-radio-button>
331 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.barChartOptions.displayBarControls" >
332 <mat-radio-button [value]='true'>Yes</mat-radio-button>
333 <mat-radio-button [value]='false'>No</mat-radio-button>
337 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.barChartOptions.xAxisDateType" >
338 <mat-radio-button [value]='true'>Yes</mat-radio-button>
339 <mat-radio-button [value]='false'>No</mat-radio-button>
343 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.barChartOptions.minimizeXAxisTickers" >
344 <mat-radio-button [value]='true'>Yes</mat-radio-button>
345 <mat-radio-button [value]='false'>No</mat-radio-button>
357 <th width="25%">Is Time Axis?</th>
358 <th width="25%">Log Scale (Y Axis)</th>
365 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.barChartOptions.timeAxis" >
366 <mat-radio-button [value]='true'>Yes</mat-radio-button>
367 <mat-radio-button [value]='false'>No</mat-radio-button>
371 <label class="checkbox" for="yAxisLogScale">
372 <input [(ngModel)]="chartJson.barChartOptions.yAxisLogScale" class="defaultFontSize" id="yAxisLogScale" type="checkbox">
381 </mat-expansion-panel>
382 <mat-expansion-panel *ngIf="chartJson.chartType=='TimeSeriesChart'">
383 <mat-expansion-panel-header>
385 Time Series Chart Options
387 <mat-panel-description>
388 Set Time Series Chart Options
389 </mat-panel-description>
390 </mat-expansion-panel-header>
391 <div class="field-group">
395 <th width="20%">Render as</th>
396 <th width="20%">X Axis Label</th>
397 <th width="20%">X Axis Tickers</th>
398 <th width="20%">Is Time Axis?</th>
399 <th width="20%">Multi Series</th>
405 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.timeSeriesChartOptions.lineChartRenderer" >
406 <mat-radio-button value="line">Line</mat-radio-button>
407 <mat-radio-button value='Area'>No</mat-radio-button>
411 <label class="checkbox" for="showXAxisLabel">
412 <input [(ngModel)]="chartJson.timeSeriesChartOptions.showXAxisLabel" class="defaultFontSize" id="showXAxisLabel" type="checkbox">
413 <i class="skin"></i><span></span>
417 <label class="checkbox" for="addXAxisTicker">
418 <input [(ngModel)]="chartJson.timeSeriesChartOptions.addXAxisTicker" class="defaultFontSize" id="addXAxisTicker" type="checkbox">
419 <i class="skin"></i><span></span>
423 <label class="checkbox" for="nonTimeAxis">
424 <input [(ngModel)]="chartJson.timeSeriesChartOptions.nonTimeAxis" class="defaultFontSize" id="nonTimeAxis" type="checkbox">
425 <i class="skin"></i><span></span>
429 <label class="checkbox" for="multiSeries">
430 <input [(ngModel)]="chartJson.timeSeriesChartOptions.multiSeries" class="defaultFontSize" id="multiSeries" type="checkbox">
431 <i class="skin"></i><span></span>
438 </mat-expansion-panel>
443 <div class="field-group">
444 <button (click)="saveChartData()" class="btn btn-alt btn-small" style="font-size: 17px;">Save</button>