-
4 Oct 2012 5:46 AM #1
Answered: Touch-2.1.0-RC1 pie chart performLayout
Answered: Touch-2.1.0-RC1 pie chart performLayout
Hi all,
Today I tried the rc1 of touch-2.1.0 and I wanted to render a pie chart, but all I get is this error:
Which I find quite odd, since the only forum post about this I found was that the issue was fixed in beta3 of this release.Code:Uncaught TypeError: Object [object Object] has no method 'performLayout'
The chart I use is build like this:
Is there anyone else who still has this problem?Code:var store = new Ext.data.JsonStore({ fields: ['period', 'value'], data: [{'period': '10-2011','value': '42'}, {'period': '11-2011', 'value': '18'}, {'period': '12-2011', 'value': '27'}, {'period': '01-2012', 'value': '8'}, {'period': '02-2012', 'value': '19'}] }); Ext.define('MCT.view.TestChart', { extend: 'Ext.chart.AbstractChart', alias: 'widget.testchart', config: { width: 500, height: 300, animate: false, store: store, theme: 'Base', insetPadding: 20, showMarkers: true, series: [{ type: 'pie', angleField: 'value', highlight: { margin: 20 }, label: { field: 'period', display: 'rotate', contrast: true, font: '18px Arial' } }] } });
-
Best Answer Posted by mitchellsimoens
The Pie chart the kitchensink is using doesn't use AbstractChart, it uses the PolarChart.
-
9 Oct 2012 6:39 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,650
- Vote Rating
- 434
- Answers
- 3107
The Pie chart the kitchensink is using doesn't use AbstractChart, it uses the PolarChart.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote