View Full Version : pie chart bug?

3 Apr 2011, 1:09 AM
Hi guys,
This was driving me crazy the last hours and it would be nice if somebody could try that:
I'm having a simple pie chart and sometimes my calculations are giving really huge differences in values. So whenever I try to show for example such data
A ... 9
B ... 471257
the pie chart will show me 100% for data B; which is literally not true.


3 Apr 2011, 6:59 AM
Can you post a working showcase?

3 Apr 2011, 7:46 AM
well, as I have said, just a simple pie chart! ;)
I have taken the example from dev.sencha.com and adjusted two extreme data values:

var store = new Ext.data.JsonStore({
fields: ['season', 'total'],
data: [{
season: 'Summer',
total: 9
season: 'Fall',
total: 471257

new Ext.Panel({
width: 400,
height: 400,
title: 'Pie Chart with Legend - Favorite Season',
renderTo: 'container',
items: {
store: store,
xtype: 'piechart',
dataField: 'total',
categoryField: 'season',
//extra styles get applied to the chart defaults
display: 'bottom',
padding: 5,
family: 'Tahoma',
size: 13