Posts

Showing posts from 2019

Recent

Mat Date Picker set Default value, Previous Sunday and Saturday

https://stackblitz.com/edit/ng-mat-date-value-binding-kk-12?embed=1&file=app/datepicker-value-example.html&view=preview < mat-form-field >    < input   matInput  [ matDatepicker ] = "picker3"   placeholder = "Value binding"  [ value ] = "startDate.value" >    < mat-datepicker-toggle   matSuffix  [ for ] = "picker3" ></ mat-datepicker-toggle >    < mat-datepicker  # picker3 ></ mat-datepicker > </ mat-form-field > < mat-form-field >    < input   matInput  [ matDatepicker ] = "picker4"   placeholder = "Value binding"  [ value ] = "endDate.value" >    < mat-datepicker-toggle   matSuffix  [ for ] = "picker4" ></ mat-datepicker-toggle >    < mat-datepicker  # picker4 ></ mat-datepicker > </ mat-form-field > import   {   Component   }   from   "@angular/core" ; import   {   FormControl   }   from   "@angular

Kendo Chart with Dynamic Series

https://stackblitz.com/edit/ng-kendo-chart-dynamic-series-kk-12?embed=1&file=app/app.component.ts&view=preview import   {   Component   }   from   '@angular/core' ; @ Component ({   selector :   'my-app' ,   template :   `         <button (click)="addSeries()">Add series</button>         <kendo-chart>           <kendo-chart-series>             <kendo-chart-series-item [stack]="true" [data]="data"             categoryField="organization"                 *ngFor="let series of model"                 [name]="series.name"                 [field]="series.field">                   <kendo-chart-series-item-labels format="c0" background="none" background="none">                     </kendo-chart-series-item-labels>             </kendo-chart-series-item>           </kendo-chart-series>            <kendo-chart-legend