Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi,

                                    I am not able to run the JS code which calls the 'dxPieChart ' function for the chart container. I am getting the following error:

                                    0x800a01b6 - Microsoft JScript runtime error: Object doesn't support property or method 'dxPieChart'

                                    The JS code I used is pasted below (its from the DXTREME Visualization Gallery). Please let me know if I am missing something here?

                                    var dataSource = [
                                    { country: 'Russia', area: 12 },
                                    { country: 'Canada', area: 7 },
                                    { country: 'USA', area: 7 },
                                    { country: 'China', area: 7 },
                                    { country: 'Brazil', area: 6 },
                                    { country: 'Australia', area: 5 },
                                    { country: 'India', area: 2 },
                                    { country: 'Others', area: 55 }
                                    ];

                                    var chart = $("#chartContainer16").dxPieChart({
                                    size:{
                                    width: 500
                                    },
                                    dataSource: dataSource,
                                    series: [
                                    {
                                    argumentField: 'country',
                                    valueField: 'area',
                                    label:{
                                    visible: true,
                                    connector:{
                                    visible:true,
                                    width: 1
                                    }
                                    }
                                    }
                                    ],
                                    title: 'Area of Countries'
                                    });


                                    Thanks,
                                    Sujith

                                You must  log in  or  register  to leave comments

                                1 Solution

                                0

                                Thank you for your question. It seems that you have incorrectly included DXTREME JS scripts in app.html.

                                 Please ensure that the sequence is:

                                	
                                [HTML]
                                <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="js/knockout-2.1.0.js"></script> <script type="text/javascript" src="js/globalize.js"></script> <script type="text/javascript" src="js/dxtreme.core-12.2.js"></script> <script type="text/javascript" src="js/dxtreme.framework-12.2.js"></script> <script type="text/javascript" src="js/dxtreme.widgets-12.2.js"></script> <script type="text/javascript" src="js/dxtreme.viz-12.2.js"></script> <script type="text/javascript" src="app.config.js"></script> <script type="text/javascript" src="app.js"></script> <script type="text/javascript" src="data/db.js"></script>

                                Please let us know if you need any further assistance.

                                Show all comments
                                You must  log in  or  register  to leave comments

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners