This is a migrated thread and some comments may be shown as answers.

Pie Chart is not Showing full

0 Answers 118 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Anand
Top achievements
Rank 1
Anand asked on 18 Apr 2012, 10:48 AM
Below Pie Chart i trying do with Custom data. But its not Showing

var d= jQuery.parseJSON('[{"XAXIS":"HERMES","COUNT":"51"},{"XAXIS":"J R T CUMBUM","COUNT":"69"},{"XAXIS":"Krishnamoorthy","COUNT":"70"},{"XAXIS":"RED BUS","COUNT":"150"}]');  
  $("#ChartDiv").kendoChart({
        legend: {
            visible:true,
            position:"right"
        },
        seriesDefault: {
              type: "pie"
       },
       dataSource:{data:d},
       series: [{                      
                field:"COUNT",
                type: "pie",
                categoryField:"XAXIS",
                labels:{
                  visible: true,                   
                  template:"${value}"
                }
              }],
      tooltip:
      {
        visible:true,      
        template:"<div style='white-space: normal; max-width: 120px;'>${category} - ${value}</div>"
      },
      categoryAxis:{field: "XAXIS"}
  });

<div id="ChartDiv" style="width: 900px; height: 500px; display: inline-block;">
</div>

No answers yet. Maybe you can help?

Tags
Charts
Asked by
Anand
Top achievements
Rank 1
Share this question
or