Radar charts
Set the chart.type="Cloumn" default
[ritsrivastava said:] can i set the Default chart.Type="column", of radar chart. i have call the method "switchToColumnSeries()" end of my code but it gives the error. in Legend.
[dmandrioli said:] RadarChart.type allowed values are "circular" and "polygonal". This property is used for the grid lines, not for series. Hope this helps,
SystemAdmin 110000D4XK 2009-06-23T21:44:53Z [dmandrioli said:] RadarChart.type allowed values are "circular" and "polygonal". This property is used for the grid lines, not for series. Hope this helps, More... [ritsrivastava said:] The default applied chart.type="polygonal" on Radar can i change it chart.type="circular"???
SystemAdmin 110000D4XK 2009-06-23T21:53:26Z [ritsrivastava said:] The default applied chart.type="polygonal" on Radar can i change it chart.type="circular"??? More... [dmandrioli said:] Yes, you can set type to "circular": - in MXML: <ilog:RadarChart id="chart" type="circular" ... <br /> - or in Action Script: chart.type = "circular" Hope this helps,
SystemAdmin 110000D4XK 2009-06-23T21:56:57Z [dmandrioli said:] Yes, you can set type to "circular": - in MXML: <ilog:RadarChart id="chart" type="circular" ... <br /> - or in Action Script: chart.type = "circular" Hope this helps, More... [ritsrivastava said:] Ya, i have chenge it 'chart.type = "circular";' but dont change the 'chart.series' ,'lineSeries' to 'columnSeries' so it cant create the column in chart, when i change the 'chart.series' to 'columnSeries' [ chart.series='columnSeries' ], it gives error in legend creation [color]
SystemAdmin 110000D4XK 2009-06-23T22:02:53Z [ritsrivastava said:] Ya, i have chenge it 'chart.type = "circular";' but dont change the 'chart.series' ,'lineSeries' to 'columnSeries' so it cant create the column in chart, when i change the 'chart.series' to 'columnSeries' [ chart.series='columnSeries' ], it gives error in legend creation [color] More... [dmandrioli said:] i change the 'chart.series' to 'columnSeries' [ chart.series='columnSeries' ] Maybe you have to replace chart.series='columnSeries' by chart.series=columnSeries (columnSeries is an object, not a string) Hope this helps,
SystemAdmin 110000D4XK 2009-06-23T22:22:12Z [dmandrioli said:] i change the 'chart.series' to 'columnSeries' [ chart.series='columnSeries' ] Maybe you have to replace chart.series='columnSeries' by chart.series=columnSeries (columnSeries is an object, not a string) Hope this helps, More... [ritsrivastava said:] No, i have replace like that : chart.series=columnSeries; chart.type="circular";
SystemAdmin 110000D4XK 2009-06-23T22:29:29Z [ritsrivastava said:] No, i have replace like that : chart.series=columnSeries; chart.type="circular"; More... [dmandrioli said:] I do not understand what you are trying to achieve. Please post a complete runnable sample that reproduces your problem. Thanks,
SystemAdmin 110000D4XK 2009-06-23T22:47:01Z [dmandrioli said:] I do not understand what you are trying to achieve. Please post a complete runnable sample that reproduces your problem. Thanks, More... [ritsrivastava said:] i have past my code here; NomValue=[]; var xml:XML; categories = []; lineSeries=[]; columnSeries=[]; for each (xml in source.indicators.indicator) { categories.push(xml.toString()); } countries = []; dataSource = new ArrayCollection(); var i:int = 0; var j:int = 0; for each (var s:Object in source.country) { countries.push(s.#name.toString()); } for each (var cat:String in categories) { var o:Object = new Object(); o["Category"] = cat; dataSource.addItem(o); } i = 0; for each (s in source.country) { j = 0; for each (var value:Number in s.value) { NomValue.push(Number(Math.floor(Number(value)*1000)/1000)) dataSource.getItemAt(j)[countries[i]] = Number(Math.floor(Number(value)*1000)/1000); j++; } i++; } createSeries(lineSeries,RadarLineSeries); createSeries(columnSeries, RadarColumnSeries); initSeriesMapping(); chart.series=lineSeries; initLegend(); liner.maximum=Math.max.apply(null, NomValue) if (lineForm=='1') { switchToSegment(); } else { switchToCurve(); } switch (axes) { case ('1'): hAxis.visible=true; vAxis.visible=false; hAxis.includeInLayout=true; vAxis.includeInLayout=false; break; case ('2'): hAxis.visible=false; vAxis.visible=true; hAxis.includeInLayout=false; vAxis.includeInLayout=true; break; case ('3'): hAxis.visible=true; vAxis.visible=true; hAxis.includeInLayout=true; vAxis.includeInLayout=true; break; case ('4'): hAxis.visible=false; vAxis.visible=false; hAxis.includeInLayout=false; vAxis.includeInLayout=false; break; } if (seriesType=='1') { chart.series = lineSeries; chart.type = "polygonal"; } else { chart.series = lineSeries; chart.type = "polygonal"; } // end of code it give the listed error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at RadarLineSeriesLegendMarker/updateDisplayList()[/usr/flex/flex1.0/maven2-dev/trunk/build/bin/chart/src/flex/ilog/charts/series/RadarLineSeriesLegendMarker.as:70] at mx.skins::ProgrammaticSkin/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:421] at mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]
SystemAdmin 110000D4XK 2009-06-23T23:28:08Z [ritsrivastava said:] i have past my code here; NomValue=[]; var xml:XML; categories = []; lineSeries=[]; columnSeries=[]; for each (xml in source.indicators.indicator) { categories.push(xml.toString()); } countries = []; dataSource = new ArrayCollection(); var i:int = 0; var j:int = 0; for each (var s:Object in source.country) { countries.push(s.#name.toString()); } for each (var cat:String in categories) { var o:Object = new Object(); o["Category"] = cat; dataSource.addItem(o); } i = 0; for each (s in source.country) { j = 0; for each (var value:Number in s.value) { NomValue.push(Number(Math.floor(Number(value)*1000)/1000)) dataSource.getItemAt(j)[countries[i]] = Number(Math.floor(Number(value)*1000)/1000); j++; } i++; } createSeries(lineSeries,RadarLineSeries); createSeries(columnSeries, RadarColumnSeries); initSeriesMapping(); chart.series=lineSeries; initLegend(); liner.maximum=Math.max.apply(null, NomValue) if (lineForm=='1') { switchToSegment(); } else { switchToCurve(); } switch (axes) { case ('1'): hAxis.visible=true; vAxis.visible=false; hAxis.includeInLayout=true; vAxis.includeInLayout=false; break; case ('2'): hAxis.visible=false; vAxis.visible=true; hAxis.includeInLayout=false; vAxis.includeInLayout=true; break; case ('3'): hAxis.visible=true; vAxis.visible=true; hAxis.includeInLayout=true; vAxis.includeInLayout=true; break; case ('4'): hAxis.visible=false; vAxis.visible=false; hAxis.includeInLayout=false; vAxis.includeInLayout=false; break; } if (seriesType=='1') { chart.series = lineSeries; chart.type = "polygonal"; } else { chart.series = lineSeries; chart.type = "polygonal"; } // end of code it give the listed error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at RadarLineSeriesLegendMarker/updateDisplayList()[/usr/flex/flex1.0/maven2-dev/trunk/build/bin/chart/src/flex/ilog/charts/series/RadarLineSeriesLegendMarker.as:70] at mx.skins::ProgrammaticSkin/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:421] at mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403] More... [dmandrioli said:] Thanks for providing some source code, unfortunately it is not enough to understand and investigate your problem. Please post a runnable sample i.e. a zipped Flex Builder project or a complete Application to copy/paste in Flex Builder. Thanks,
Related Links
Need help adding dynamic series to Radar Chart
Start at 90 not 0
Obtaining radar chart Linear Axis coordinates
Negative values ?
Disable datatip for some of the series...
Error updating radarchart
Change the orientation of the category label
Labels size
Customizing radar charts angular axis labels
Custom labelFunction for radarchart
Linear Gradient as fill for RadarColumnSerie
Dragging Radar Line Series
How to change angular axis minimum and maximum?
RadarColumnSeries Remove Column Tapering on Large Values
Need to create radar chart without writing code
Radar Labels don\'t update