I have a donut chart with rounded ends in Kendo UI for jQuery running exactly as the client wants. However, I need this to be using Kendo UI for Angular instead. I believe this is supported if I use Drawing Visuals, but I can't figure out how to port over what I have for my jQuery version into the Angular version.
My working stackblitz of the jQuery donut is here: https://stackblitz.com/edit/web-platform-szmuv9
My Angular version that I am trying to work on is here:
https://stackblitz.com/edit/angular-bi2dsw
My app.component.ts:
@Component({
selector: 'my-app',
template: `
<kendo-chart>
<kendo-chart-legend [visible]="false"></kendo-chart-legend>
<kendo-chart-area background="none"></kendo-chart-area>
<kendo-chart-tooltip>
<ng-template kendoChartSeriesTooltipTemplate
let-value="value" let-category="category" let-series="series">
{{ category }} ({{ series.name }}): {{ value }}%
</ng-template>
</kendo-chart-tooltip>
<kendo-chart-series>
<kendo-chart-series-item *ngFor="let series of model; let outermost = last;"
type="donut" [startAngle]="90"
[holeSize]="60" [margin]="10"
[name]="series.name" [data]="series.data"
field="value" categoryField="category" colorField="color">
</kendo-chart-series-item>
</kendo-chart-series>
</kendo-chart>
`,
})
the tempdata.ts file:
export const tempdata = [ { data: [ { category: 'demand', value: '75%', color: '#009a8c', }, { category: 'late', value: '25%', color: '#e31b23', }, ], }, { data: [ { category: 'All', value: 500, color: '#065aa3', }, ], }, ];
I am going through your API references as well (https://www.telerik.com/kendo-angular-ui/components/drawing/api/), but haven't had much luck. Can anyone help point me in the right direction?