javascript - extjs 3.2.1 chart is not displaying -


i creating pie chart in 3.2.1. , adding chart field set. not displaying chart field set. blank white page displaying. , in console "uncaught typeerror: error #1007" error showing. here code-

 createchart: function(node, fieldsetid, kwtags) {     var store = new ext.data.jsonstore({         fields: ['name', 'data'],         data: [{             "name": "item-0",             "data": 5         }, {             "name": "item-1",             "data": 7         }, {             "name": "item-2",             "data": 3         }, {             "name": "item-3",             "data": 6         }, {             "name": "item-4",             "data": 2         }, {             "name": "item-5",             "data": 8         }]     });       var chart = new ext.chart.chart({         width: 200,         height: 350,         animate: true,         store: store,         theme: 'base:gradients',         series: [{             type: 'pie',             anglefield: 'data',              showinlegend: true,             tips: {                 trackmouse: true,                 width: 140,                 height: 28,                  renderer: function(storeitem, item) {                      this.settitle(storeitem.get('name') + ' ate ' + storeitem.get('data') + ' cookies');                  }             },             label: {                 field: 'name',                 display: 'rotate',                 //contrast: true,                 font: '18px arial'             }         }]       });     return chart;  }, 


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -