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="none">--select--</mat-option>
55 <mat-option value="BarChart3D" (onSelectionChange)="setBarChartOptions()">Bar Chart</mat-option>
56 <mat-option value="TimeSeriesChart" (onSelectionChange)="setTimeSeriesChartOptions()">Time Series/Area Chart</mat-option>
57 <mat-option value="PieChart">Pie Chart</mat-option>
58 <mat-option value="AnnotationChart">Annotation Chart</mat-option>
59 <mat-option value="FlexTimeChart">Flexible Time Chart</mat-option>
64 <mat-label class="lable">Domain Axis</mat-label>
65 <mat-select [(ngModel)]="chartJson.domainAxisJSON.value" aria-label="domain axis">
66 <mat-option *ngFor="let d of chartJson.chartColumnJSONList"
67 value="{{d.value}}">{{d.title}}</mat-option>
72 <mat-label class="lable">Category</mat-label>
73 <mat-select [(ngModel)]="chartJson.categoryAxis" aria-label="category axis">
74 <mat-option>None</mat-option>
75 <mat-option *ngFor="let d of chartJson.chartColumnJSONList"
76 value="{{d.value}}">{{d.title}}</mat-option>
85 <th width="18%">Range Axis</th>
86 <th width="15%">Y Axis</th>
87 <th width="15%">Chart Title</th>
88 <th width="22%">Color</th>
89 <th width="25%">Line Type</th>
93 <tbody *ngFor="let rangeReport of chartJson.rangeAxisList">
97 <mat-select [(ngModel)]="rangeReport.rangeAxisLabelJSON.value" aria-label="category axis">
98 <mat-option *ngFor="let d of chartJson.chartColumnJSONList"
99 value="{{d.value}}">{{d.title}}</mat-option>
104 <input [(ngModel)]="rangeReport.rangeYAxis" class="defaultFontSize1" id="rangeAxis" name="displayName"
108 <input [(ngModel)]="rangeReport.rangeChartGroup" class="defaultFontSize1" id="rangeChartGroup" name="displayName"
113 <mat-label class="lable">Select Color</mat-label>
114 <mat-select [(ngModel)]="rangeReport.rangeColorJSON.value" aria-label="category axis">
115 <mat-option *ngFor="let d of rangeColors"
116 value="{{d.value}}">{{d.title}}</mat-option>
122 <mat-label class="lable">Select Line Type</mat-label>
123 <mat-select [(ngModel)]="rangeReport.rangeLineTypeJSON.value" aria-label="category axis">
124 <mat-option *ngFor="let d of lineTypes"
125 value="{{d.value}}">{{d.title}}</mat-option>
130 <button (click)="removeRangeAxisRow(rangeReport)" class="btn btn-alt btn-small"
131 ng-if="rangeReport.removed!='true'"
132 type="submit">Remove</button>
137 <div align="right" style="margin-right:20px">
138 <button (click)="addRangeAxisRow()" class="btn btn-alt btn-small" style="font-size: 17px;">Add</button>
142 <div class="form-group">
144 <mat-expansion-panel>
145 <mat-expansion-panel-header>
149 <mat-panel-description>
150 Set Additional Chart Properties
151 </mat-panel-description>
152 </mat-expansion-panel-header>
153 <div class="field-group">
157 <th style="width: 30%"><span>Primary Axis Label</span></th>
158 <th style="width: 30%">Secondary Axis Label</th>
163 <td><label for="primaryAxisLabel">
164 <input [(ngModel)]="chartJson.primaryAxisLabel" class="defaultFontSize" id="primaryAxisLabel" name="displayName"
165 style="width: 200px;" type="text">
167 <td><label for="secondaryAxisLabel">
168 <input [(ngModel)]="chartJson.secondaryAxisLabel" class="defaultFontSize" id="secondaryAxisLabel" name="displayName"
169 style="width: 200px;" type="text">
175 <div class="field-group">
179 <th style="width: 30%"><span>Range Axis Minimum Range</span></th>
180 <th style="width: 30%">Maximum Range</th>
185 <td><label for="width1">
186 <input [(ngModel)]="chartJson.minRange" class="defaultFontSize" id="width1" name="displayName"
187 style="width: 200px;" type="text">
189 <td><label for="height">
190 <input [(ngModel)]="chartJson.maxRange" class="defaultFontSize" id="height" name="displayName"
191 style="width: 200px;" type="text">
198 </mat-expansion-panel>
200 <mat-expansion-panel>
201 <mat-expansion-panel-header>
205 <mat-panel-description>
206 Set Common chart Options
207 </mat-panel-description>
208 </mat-expansion-panel-header>
214 <th>Legend Position</th>
220 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.commonChartOptions.legendLabelAngle" >
221 <mat-radio-button value ="up45">up 45°</mat-radio-button>
222 <mat-radio-button value ='up90'>up 90°</mat-radio-button>
223 <mat-radio-button value ='down45'>down 45°</mat-radio-button>
224 <mat-radio-button value ='down90'>down 90°</mat-radio-button>
225 <mat-radio-button value ='standard'>Standard</mat-radio-button>
229 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.commonChartOptions.legendPosition" >
230 <mat-radio-button value ="top">Top</mat-radio-button>
231 <mat-radio-button value ='right'>Right</mat-radio-button>
240 <th width="20%">Legend</th>
241 <th width="20%">Animation</th>
248 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.commonChartOptions.hideLegend" >
249 <mat-radio-button [value]='false'>Yes</mat-radio-button>
250 <mat-radio-button [value]='true'>No</mat-radio-button>
254 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.commonChartOptions.animateAnimatedChart" >
255 <mat-radio-button [value]='true'>Yes</mat-radio-button>
256 <mat-radio-button [value]='false'>No</mat-radio-button>
266 <th width="25%">Top Margin</th>
267 <th width="25%">Bottom Margin</th>
268 <th width="25%">Left Margin</th>
269 <th width="25%">Right Margin</th>
275 <input [(ngModel)]="chartJson.commonChartOptions.topMargin" class="defaultFontSize1" id="topMargin" name="displayName"
276 type="text" appNumbersOnly>
279 <input [(ngModel)]="chartJson.commonChartOptions.bottomMargin" class="defaultFontSize1" id="bottomMargin" name="displayName"
280 type="text" appNumbersOnly>
283 <input [(ngModel)]="chartJson.commonChartOptions.leftMargin" class="defaultFontSize1" id="leftMargin" name="displayName"
284 type="text" appNumbersOnly>
287 <input [(ngModel)]="chartJson.commonChartOptions.rightMargin" class="defaultFontSize1" id="rightMargin" name="displayName"
288 type="text" appNumbersOnly>
294 </mat-expansion-panel>
296 <mat-expansion-panel *ngIf="chartJson.chartType=='BarChart3D'">
297 <mat-expansion-panel-header>
301 <mat-panel-description>
302 Set Bar chart Options
303 </mat-panel-description>
304 </mat-expansion-panel-header>
309 <th width="25%">Orientation</th>
310 <th width="18%">Stacked</th>
311 <th width="18%">Show Controls</th>
312 <th width="18%">XAxis Date Type</th>
313 <th width="21%">Display less XAxis tickers</th>
320 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.barChartOptions.verticalOrientation" >
321 <mat-radio-button [value]='true'>Vertical</mat-radio-button>
322 <mat-radio-button [value]='false'>Horizontal</mat-radio-button>
326 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.barChartOptions.stackedChart" >
327 <mat-radio-button [value]='true'>Yes</mat-radio-button>
328 <mat-radio-button [value]='false'>No</mat-radio-button>
332 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.barChartOptions.displayBarControls" >
333 <mat-radio-button [value]='true'>Yes</mat-radio-button>
334 <mat-radio-button [value]='false'>No</mat-radio-button>
338 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.barChartOptions.xAxisDateType" >
339 <mat-radio-button [value]='true'>Yes</mat-radio-button>
340 <mat-radio-button [value]='false'>No</mat-radio-button>
344 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.barChartOptions.minimizeXAxisTickers" >
345 <mat-radio-button [value]='true'>Yes</mat-radio-button>
346 <mat-radio-button [value]='false'>No</mat-radio-button>
358 <th width="25%">Is Time Axis?</th>
359 <th width="25%">Log Scale (Y Axis)</th>
366 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.barChartOptions.timeAxis" >
367 <mat-radio-button [value]='true'>Yes</mat-radio-button>
368 <mat-radio-button [value]='false'>No</mat-radio-button>
372 <label class="checkbox" for="yAxisLogScale">
373 <input [(ngModel)]="chartJson.barChartOptions.yAxisLogScale" class="defaultFontSize" id="yAxisLogScale" type="checkbox">
382 </mat-expansion-panel>
383 <mat-expansion-panel *ngIf="chartJson.chartType=='TimeSeriesChart'">
384 <mat-expansion-panel-header>
386 Time Series Chart Options
388 <mat-panel-description>
389 Set Time Series Chart Options
390 </mat-panel-description>
391 </mat-expansion-panel-header>
392 <div class="field-group">
396 <th width="20%">Render as</th>
397 <th width="20%">X Axis Label</th>
398 <th width="20%">X Axis Tickers</th>
399 <th width="20%">Is Time Axis?</th>
400 <th width="20%">Multi Series</th>
406 <mat-radio-group aria-label="Select an option" [(ngModel)]="chartJson.timeSeriesChartOptions.lineChartRenderer" >
407 <mat-radio-button value="line">Line</mat-radio-button>
408 <mat-radio-button value='Area'>No</mat-radio-button>
412 <label class="checkbox" for="showXAxisLabel">
413 <input [(ngModel)]="chartJson.timeSeriesChartOptions.showXAxisLabel" class="defaultFontSize" id="showXAxisLabel" type="checkbox">
414 <i class="skin"></i><span></span>
418 <label class="checkbox" for="addXAxisTicker">
419 <input [(ngModel)]="chartJson.timeSeriesChartOptions.addXAxisTicker" class="defaultFontSize" id="addXAxisTicker" type="checkbox">
420 <i class="skin"></i><span></span>
424 <label class="checkbox" for="nonTimeAxis">
425 <input [(ngModel)]="chartJson.timeSeriesChartOptions.nonTimeAxis" class="defaultFontSize" id="nonTimeAxis" type="checkbox">
426 <i class="skin"></i><span></span>
430 <label class="checkbox" for="multiSeries">
431 <input [(ngModel)]="chartJson.timeSeriesChartOptions.multiSeries" class="defaultFontSize" id="multiSeries" type="checkbox">
432 <i class="skin"></i><span></span>
439 </mat-expansion-panel>
444 <div class="field-group">
445 <button (click)="saveChartData()" class="btn btn-alt btn-small" style="font-size: 17px;">Save</button>