Magic data breaks pie chart

3 posts, 0 answers
  1. Andrew
    Andrew avatar
    2 posts
    Member since:
    Aug 2012

    Posted 22 Aug 2012 Link to this post

    If I place the following on my page, no graph is displayed:

    This issues appears to be that I'm passing 2568 as a data value nothing is rendered. Is there a reason for this?

     <script>
    function createBuildingChart() {
                $('#buildingChart').kendoChart({
                    theme: $(document).data('kendoSkin') || 'default',
                    dataSource: { data: graphDataBuilding },
                    chartArea: { height: 250, width: 218 },
                    legend: { position: 'bottom', visible: true, margin: { left: 1, right: 1 }, labels: { font: '10px Arial' }, border: {width:1, color:'black', dashType:'solid'} },
                    series: [{ type: 'pie', field: 'Value', categoryField: 'Text', padding: 0}],
                    tooltip: { visible: true, template: '<strong>${ category }</strong>: ${ value }' },
                    seriesColors: ["#4575B4", "#D53E4F", "#F46D43", "#FDAE61", "#FEE08B"]
                });
            }
    </script>
    <script type='text/javascript'>var graphDataBuilding = [{ 'Text': 'Active', 'Value': 2568 }];createBuildingChart();</script>
  2. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 23 Aug 2012 Link to this post

    Hello Andrew Walters,

    I am guessing that this problem appears with any IE except IE 9. This problem is already fixed. The fix will be included in the next official release.

    Kind regards,
    Hristo Germanov
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Andrew
    Andrew avatar
    2 posts
    Member since:
    Aug 2012

    Posted 23 Aug 2012 Link to this post

    I actually noticed it in Firefox 14, but thanks for letting me know it will be fixed in the next release.
Back to Top