|
|
|
@ -21,15 +21,24 @@ |
|
|
|
<section fxLayout="column" fxLayout.gt-xs="row" fxLayoutGap.gt-xs="8px"> |
|
|
|
<mat-form-field fxFlex class="mat-block"> |
|
|
|
<mat-label translate>widgets.chart.radius</mat-label> |
|
|
|
<input matInput type="number" min="0" formControlName="radius"> |
|
|
|
<input matInput type="number" step="0.1" min="0" max="1" formControlName="radius"> |
|
|
|
<mat-error *ngIf="flotPieWidgetSettingsForm.get('radius').hasError('min') || flotPieWidgetSettingsForm.get('radius').hasError('max')"> |
|
|
|
{{ 'widgets.chart.common-pie-settings-range-error' | translate}} |
|
|
|
</mat-error> |
|
|
|
</mat-form-field> |
|
|
|
<mat-form-field fxFlex class="mat-block"> |
|
|
|
<mat-label translate>widgets.chart.inner-radius</mat-label> |
|
|
|
<input matInput type="number" min="0" formControlName="innerRadius"> |
|
|
|
<input matInput type="number" step="0.1" min="0" max="1" formControlName="innerRadius"> |
|
|
|
<mat-error *ngIf="flotPieWidgetSettingsForm.get('radius').hasError('min') || flotPieWidgetSettingsForm.get('innerRadius').hasError('max')"> |
|
|
|
{{ 'widgets.chart.common-pie-settings-range-error' | translate}} |
|
|
|
</mat-error> |
|
|
|
</mat-form-field> |
|
|
|
<mat-form-field fxFlex class="mat-block"> |
|
|
|
<mat-label translate>widgets.chart.tilt</mat-label> |
|
|
|
<input matInput type="number" min="0" formControlName="tilt"> |
|
|
|
<input matInput type="number" step="0.1" min="0" max="1" formControlName="tilt"> |
|
|
|
<mat-error *ngIf="flotPieWidgetSettingsForm.get('radius').hasError('min') || flotPieWidgetSettingsForm.get('tilt').hasError('max')"> |
|
|
|
{{ 'widgets.chart.common-pie-settings-range-error' | translate}} |
|
|
|
</mat-error> |
|
|
|
</mat-form-field> |
|
|
|
</section> |
|
|
|
<mat-slide-toggle formControlName="showLabels" class="slide-block"> |
|
|
|
|