I am trying to create a simple donut chart using Kendo UI data wiz widgets. How can I use an angular scope variable within such a widget ?
<div kendo-chart
k-legend="{ position: 'top' }"
k-series-defaults="{ type: 'donut', startAngle: 270, holeSize: 80 }"
k-chart-area="{ background: '', height:220 }"
k-series="[{
field: 'share',
categoryField: 'resolution',
visibleInLegendField: 'visibleInLegend',
padding: 10
}]"
k-data-source="[
{
share: {{myMetadata.runningPercentage}},
visibleInLegend: false,
color: '#65c178'
},
{
share: 100 - {{myMetadata.runningPercentage}},
visibleInLegend: false,
color: '#e2e2e2'
}
]"
k-series-hover="onSeriesHover"
>
<div kendo-chart
k-legend="{ position: 'top' }"
k-series-defaults="{ type: 'donut', startAngle: 270, holeSize: 80 }"
k-chart-area="{ background: '', height:220 }"
k-series="[{
field: 'share',
categoryField: 'resolution',
visibleInLegendField: 'visibleInLegend',
padding: 10
}]"
k-data-source="[
{
share: {{myMetadata.runningPercentage}},
visibleInLegend: false,
color: '#65c178'
},
{
share: 100 - {{myMetadata.runningPercentage}},
visibleInLegend: false,
color: '#e2e2e2'
}
]"
k-series-hover="onSeriesHover"
>