PDA

View Full Version : [FIXED-EXTJSIV-223] Radar chart misses scaling



steffenk
21 Mar 2011, 2:50 PM
Example:
http://dev.sencha.com/deploy/ext-4.0-pr5/examples/charts/FormDashboard.html

All series are rendered with the maximum value existing in the series. This makes the scaling random.

Missing is to define a MaxValue, so all charts are comparable and have a fix scaling.

See this post with a possible fix:
http://www.sencha.com/forum/showthread.php?127366-Radial-chart-max-question&p=582545&viewfull=1#post582545

philogb
27 Mar 2011, 3:45 PM
Hi,

Thanks for your report. To be coherent with the other Charts API we added this as a parameter of the Radial Axis used by the radar chart. Now you can specify a `maximum` parameter with a fixed value that will scale the data correctly.

For example the form dashboard radar chart configuration now has:




var radarChart = Ext.create('Ext.chart.Chart', {
margin: '0 0 0 0',
insetPadding: 20,
flex: 1.2,
animate: true,
store: chs,
theme: 'Category1',
axes: [{
type: 'Radial',
position: 'radial',
maximum: 100, //max value
label: {
display: 'none'
}
}],
series: [{
type: 'radar',
xField: 'Name',
yField: 'Data',
showInLegend: false,
showMarkers: true,
markerCfg: {
radius: 2,
size: 2
},
label: {
display: true,
field: 'Name'
},
style: {
'opacity': 0.5,
'stroke-width': 0.5
}
}]
});

steffenk
28 Mar 2011, 2:41 AM
Thanks for the fix! Now the radar chart makes really sense.