I have a call to my api as follows:
getEntitiesForKendo() { this.gridLoading = true; this._kendoGridService.getEntities(this.gridSettings.state) .subscribe((data) => { data.data.forEach((d) => { d.creationTime = new Date(d.creationTime); d.warnings = d.warnings.split(',').map(Number); }); this.gridData = data; this.getOrganisationUnits(); this.gridLoading = false; });}In my grid I have two sparkline charts, the pie chart is working, the column chart is not. Here is my code:
<kendo-grid-column field="carePlanSectionsForReviewCount" title="{{ l('CarePlanReviews')}}" class="text-center" width="120" media="(min-width:720px)" [filterable]="false"> <ng-template kendoGridCellTemplate let-dataItem> <kendo-sparkline [chartArea]="{background: ''}" [data]="[dataItem.carePlanSectionsForReviewTodayCount, dataItem.carePlanSectionsOverdueCount, dataItem.carePlanSectionsReviewedCount]" style="width:30px; height:30px;" [seriesColors]="['#ffb822', '#f4516c', '#34bfa3']" type="pie"> </kendo-sparkline> </ng-template></kendo-grid-column><kendo-grid-column field="warningCount" title="{{ l('NcWarnings')}}" class="text-center" width="120" media="(min-width:720px)" [filterable]="false"> <ng-template kendoGridCellTemplate let-dataItem> <kendo-sparkline [chartArea]="{background: ''}" [data]="[dataItem.warnings]"> </kendo-sparkline> {{dataItem.warnings | json}} <!-- {{dataItem.warningCount}} --> </ng-template></kendo-grid-column>The results can be seen in the attached file. The array seems good, why does the sparkline for the warnings column not display?
