If I just copy one of the simple examples and paste it into my code the only thing it renders are the legend and the labels. I have to set renderAs to canvas in order for it to show up.
I have all the right css and js files loaded but still I get nothing if I don't render as canvas.
Happens on all browsers. See attached image
This is my code:
data returned is:
[{Key:Male,Value:42},{Key:Female,Value:29},{Key:Other,Value:16},{Key:Unspecified,Value:31}]
<div id="genderChart" ng-controller="GenderChartController" class="chart"></div>
<div id="workingChart" ng-controller="GenderChartController" class="chart"></div>
$("#genderChart").kendoChart({ dataSource: { transport: { read: function (options) { RadiusAjax.get('Person/GetPersonGenderMetrix').then(function (data) { options.success(data); }) } }, sort: { field: "Key", dir: "asc" } }, theme: "material", legend: { position: "bottom" }, seriesDefaults: { type: "pie" }, series: [{ type: 'pie', field: "Value", categoryField: "Key", overlay: { gradient: "sharpBevel" } }] }); $("#workingChart").kendoChart({ dataSource: { transport: { read: function (options) { RadiusAjax.get('Person/GetPersonGenderMetrix').then(function (data) { options.success(data); }) } }, sort: { field: "Key", dir: "asc" } }, theme: "material", legend: { position: "bottom" }, seriesDefaults: { type: "pie" }, series: [{ type: 'pie', field: "Value", categoryField: "Key", overlay: { gradient: "sharpBevel" } }], renderAs: "canvas", });