Radar charts


Linear Gradient as fill for RadarColumnSerie


[carcelen said:]
Hi
I have seen the report of a bug with the problem of setting an areaFill for RadarLineSeries to a LinearGradient. I made a test and in my version of ilog its solved but I found a similar bug in the RadarLineColumnSeries.
When I try to set up a fill for the Column serie as a LinearGradient appears the same error described in the previous issue:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.graphics::LinearGradient/begin()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\graphics\LinearGradient.as:194]
at ilog.charts.renderers::RadarColumnRenderer/updateDisplayList()[/usr/flex/elixir2.0/flex-suite/trunk/build/bin/sources/library/chart/src/flex/ilog/charts/renderers/RadarColumnRenderer.as:155]
at mx.skins::ProgrammaticSkin/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:421]
at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:622]
at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:677]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]
There is a piece of code for testing it:
<?xml version="1.0"?>
<!-- Simple example to demonstrate the RadarChart control. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:ilog="http://www.ilog.com/2007/ilog/flex">
<mx:Script> <![CDATA[<br /> import mx.collections.ArrayCollection;
[Bindable]
public var london:ArrayCollection = new ArrayCollection([
{Month:"January", Temperature:39, Rainfall:3.1},
{Month:"February", Temperature:39.6, Rainfall:2.0},
{Month:"March", Temperature:42.3, Rainfall:2.4},
{Month:"April", Temperature:47.3, Rainfall:2.1},
{Month:"May", Temperature:53.4, Rainfall:2.2},
{Month:"June", Temperature:59.4, Rainfall:2.2},
{Month:"July", Temperature:62.6, Rainfall:1.8},
{Month:"August", Temperature:61.9, Rainfall:2.2},
{Month:"September", Temperature:57.6, Rainfall:2.2},
{Month:"October", Temperature:50.5, Rainfall:2.7},
{Month:"November", Temperature:43.9, Rainfall:2.9},
{Month:"December", Temperature:40.6, Rainfall:3.1}
]);
[Bindable]
public var sydney:ArrayCollection = new ArrayCollection([
{Month:"January", Temperature:71.8, Rainfall:4.1},
{Month:"February", Temperature:71.8, Rainfall:4.4},
{Month:"March", Temperature:69.8, Rainfall:5.2},
{Month:"April", Temperature:65.1, Rainfall:5.1},
{Month:"May", Temperature:59.5, Rainfall:4.8},
{Month:"June", Temperature:55.2, Rainfall:5.1},
{Month:"July", Temperature:53.6, Rainfall:4.0},
{Month:"August", Temperature:55.8, Rainfall:3.2},
{Month:"September", Temperature:59.5, Rainfall:2.7},
{Month:"October", Temperature:63.9, Rainfall:3.3},
{Month:"November", Temperature:67.1, Rainfall:3.2},
{Month:"December", Temperature:70.2, Rainfall:3.1}
]);
[Bindable]
public var moscow:ArrayCollection = new ArrayCollection([
{Month:"January", Temperature:34.4, Rainfall:1.4},
{Month:"February", Temperature:29.0, Rainfall:1.1},
{Month:"March", Temperature:32.7, Rainfall:1.3},
{Month:"April", Temperature:38.2, Rainfall:1.5},
{Month:"May", Temperature:51, Rainfall:2.0},
{Month:"June", Temperature:65.6, Rainfall:2.6},
{Month:"July", Temperature:81.5, Rainfall:3.2},
{Month:"August", Temperature:71.8, Rainfall:2.8},
{Month:"September", Temperature:57.7, Rainfall:2.3},
{Month:"October", Temperature:50.4, Rainfall:2.0},
{Month:"November", Temperature:44.1, Rainfall:1.7},
{Month:"December", Temperature:42.4, Rainfall:1.7}
]);
]]> </mx:Script>
<mx:Panel width="100%" height="100%" title="Radar Bubble Series Example" layout="horizontal">
<ilog:RadarChart width="100%" height="100%" showDataTips="true" id="radarchart">
<ilog:angularAxis>
<ilog:AngularAxis dataProvider="{london}" categoryField="Month" displayName="Month"/>
</ilog:angularAxis>
<ilog:radialAxis>
<mx:LinearAxis minimum="20" maximum="90" <br /> displayName="Temperature (°F)"/>
</ilog:radialAxis>
<ilog:series>
<!--<ilog:RadarColumnSeries dataProvider="{london}" dataField="Rainfall" displayName="London Rainfall"><br /> <ilog:radialAxis><br /> <mx:LinearAxis id="rainFallAxis" displayName="Rainfall"/><br /> </ilog:radialAxis><br /> <br /> </ilog:RadarColumnSeries><br /> <ilog:RadarColumnSeries dataProvider="{sydney}" dataField="Rainfall" displayName="Sydney Rainfall" radialAxis="{rainFallAxis}"/><br /> <ilog:RadarColumnSeries dataProvider="{moscow}" dataField="Rainfall" displayName="Moscow Rainfall" radialAxis="{rainFallAxis}"/><br /> <ilog:RadarLineSeries dataProvider="{london}" dataField="Temperature" displayName="London Temperature"/><br /> <ilog:RadarLineSeries dataProvider="{sydney}" dataField="Temperature" displayName="Sydney Temperature"/>-->
<ilog:RadarColumnSeries dataProvider="{moscow}" dataField="Temperature" displayName="Moscow Temperature">
<ilog:fill>
<mx:LinearGradient angle="180" id="lg">
<mx:entries>
<mx:GradientEntry color="0xC5C551" ratio="0.00" alpha="0.5"/>
<mx:GradientEntry color="0xFEFE24" ratio="0.33" alpha="0.5"/>
<mx:GradientEntry color="0xECEC21" ratio="0.66" alpha="0.5"/>
</mx:entries>
</mx:LinearGradient>
</ilog:fill>
</ilog:RadarColumnSeries>
</ilog:series>
</ilog:RadarChart>
<mx:Legend dataProvider="{radarchart}"/>
</mx:Panel>
</mx:Application>
Thank you in advance for the support you give in this forums.
[dmandrioli said:]
Hi,
Thanks for your feedback, I have created a BR at http://elixir-bugs.ilog.com/browse/ELIXIR-748.
As a workaround you can use the following renderer: <ilog:RadarColumnSeries itemRenderer="MyRadarColumnRenderer" ...<br />
package
{
import flash.geom.Rectangle;
import ilog.charts.renderers.RadarColumnRenderer;
import mx.charts.chartClasses.GraphicsUtilities;
import mx.graphics.IFill;
import mx.graphics.IStroke;
public class MyRadarColumnRenderer extends RadarColumnRenderer
{
private function bbox(polygon:Array):Rectangle
{
var rect:Rectangle = new Rectangle(int.MAX_VALUE, int.MAX_VALUE, int.MIN_VALUE, int.MIN_VALUE);
for (var i:int = 0; i < polygon.length; i++)<br /> {
if (polygon[i].x < rect.x)<br /> rect.x = polygon[i].x;
if (polygon[i].y < rect.y)<br /> rect.y = polygon[i].y;
if (polygon[i].x > rect.width)
rect.width = polygon[i].x;
if (polygon[i].y > rect.height)
rect.height = polygon[i].y;
}
rect.width -= rect.x;
rect.height-= rect.y;
return rect;
}
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth, unscaledHeight);
graphics.clear();
var fill:IFill = data.fill;
var stroke:IStroke = getStyle("stroke");
var form:String = getStyle("form");
fill.begin(graphics, bbox(data.polygon));
GraphicsUtilities.drawPolyLine(graphics, data.polygon,
0, data.polygon.length,"x","y",
stroke,form);
fill.end(graphics);
}
}
}
Hope this helps,
SystemAdmin
110000D4XK
‏2009-06-09T00:09:16Z
[dmandrioli said:]
Hi,
Thanks for your feedback, I have created a BR at http://elixir-bugs.ilog.com/browse/ELIXIR-748.
As a workaround you can use the following renderer: <ilog:RadarColumnSeries itemRenderer="MyRadarColumnRenderer" ...<br />
package
{
import flash.geom.Rectangle;
import ilog.charts.renderers.RadarColumnRenderer;
import mx.charts.chartClasses.GraphicsUtilities;
import mx.graphics.IFill;
import mx.graphics.IStroke;
public class MyRadarColumnRenderer extends RadarColumnRenderer
{
private function bbox(polygon:Array):Rectangle
{
var rect:Rectangle = new Rectangle(int.MAX_VALUE, int.MAX_VALUE, int.MIN_VALUE, int.MIN_VALUE);
for (var i:int = 0; i < polygon.length; i++)<br /> {
if (polygon[i].x < rect.x)<br /> rect.x = polygon[i].x;
if (polygon[i].y < rect.y)<br /> rect.y = polygon[i].y;
if (polygon[i].x > rect.width)
rect.width = polygon[i].x;
if (polygon[i].y > rect.height)
rect.height = polygon[i].y;
}
rect.width -= rect.x;
rect.height-= rect.y;
return rect;
}
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth, unscaledHeight);
graphics.clear();
var fill:IFill = data.fill;
var stroke:IStroke = getStyle("stroke");
var form:String = getStyle("form");
fill.begin(graphics, bbox(data.polygon));
GraphicsUtilities.drawPolyLine(graphics, data.polygon,
0, data.polygon.length,"x","y",
stroke,form);
fill.end(graphics);
}
}
}
Hope this helps,
More...
[carcelen said:]
maybe I didn't understand how to use the work around becouse when I try to fix the example I gave you it gives me this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.graphics::LinearGradient/begin()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\graphics\LinearGradient.as:194]
at ilog.charts.renderers::RadarColumnRenderer/updateDisplayList()[/usr/flex/elixir2.0/flex-suite/trunk/build/bin/sources/library/chart/src/flex/ilog/charts/renderers/RadarColumnRenderer.as:155]
at RadarChartWorkaround/updateDisplayList()[C:\Documents and Settings\carcelen\My Documents\Flex Builder 3\EjemplosIlog\src\RadarChartWorkaround.as:34]
at mx.skins::ProgrammaticSkin/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:421]
at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:622]
at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:677]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]
This is my Serie with the render
<ilog:RadarColumnSeries dataProvider="{moscow}" itemRenderer="RadarChartWorkaround" dataField="Temperature" displayName="Moscow Temperature">
<ilog:fill>
<mx:LinearGradient angle="180" id="lg">
<mx:entries>
<mx:GradientEntry color="0xC5C551" ratio="0.00" alpha="0.5"/>
<mx:GradientEntry color="0xFEFE24" ratio="0.33" alpha="0.5"/>
<mx:GradientEntry color="0xECEC21" ratio="0.66" alpha="0.5"/>
</mx:entries>
</mx:LinearGradient>
</ilog:fill>
</ilog:RadarColumnSeries>
And this is my copypaste code of the render
package
{
import flash.geom.Rectangle;
import ilog.charts.renderers.RadarColumnRenderer;
import mx.charts.chartClasses.GraphicsUtilities;
import mx.graphics.IFill;
import mx.graphics.IStroke;
public class RadarChartWorkaround extends RadarColumnRenderer
{
private function bbox(polygon:Array):Rectangle
{
var rect:Rectangle = new Rectangle(int.MAX_VALUE, int.MAX_VALUE, int.MIN_VALUE, int.MIN_VALUE);
for (var i:int = 0; i < polygon.length; i++)<br /> {
if (polygon[i].x < rect.x)<br /> rect.x = polygon[i].x;
if (polygon[i].y < rect.y)<br /> rect.y = polygon[i].y;
if (polygon[i].x > rect.width)
rect.width = polygon[i].x;
if (polygon[i].y > rect.height)
rect.height = polygon[i].y;
}
rect.width -= rect.x;
rect.height-= rect.y;
return rect;
}
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth, unscaledHeight);
graphics.clear();
var fill:IFill = data.fill;
var stroke:IStroke = getStyle("stroke");
var form:String = getStyle("form");
fill.begin(graphics, bbox(data.polygon));
GraphicsUtilities.drawPolyLine(graphics, data.polygon,
0, data.polygon.length,"x","y",
stroke,form);
fill.end(graphics);
}
}
}
Thank you in advance.
SystemAdmin
110000D4XK
‏2009-06-09T19:19:46Z
[carcelen said:]
maybe I didn't understand how to use the work around becouse when I try to fix the example I gave you it gives me this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.graphics::LinearGradient/begin()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\graphics\LinearGradient.as:194]
at ilog.charts.renderers::RadarColumnRenderer/updateDisplayList()[/usr/flex/elixir2.0/flex-suite/trunk/build/bin/sources/library/chart/src/flex/ilog/charts/renderers/RadarColumnRenderer.as:155]
at RadarChartWorkaround/updateDisplayList()[C:\Documents and Settings\carcelen\My Documents\Flex Builder 3\EjemplosIlog\src\RadarChartWorkaround.as:34]
at mx.skins::ProgrammaticSkin/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:421]
at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:622]
at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:677]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]
This is my Serie with the render
<ilog:RadarColumnSeries dataProvider="{moscow}" itemRenderer="RadarChartWorkaround" dataField="Temperature" displayName="Moscow Temperature">
<ilog:fill>
<mx:LinearGradient angle="180" id="lg">
<mx:entries>
<mx:GradientEntry color="0xC5C551" ratio="0.00" alpha="0.5"/>
<mx:GradientEntry color="0xFEFE24" ratio="0.33" alpha="0.5"/>
<mx:GradientEntry color="0xECEC21" ratio="0.66" alpha="0.5"/>
</mx:entries>
</mx:LinearGradient>
</ilog:fill>
</ilog:RadarColumnSeries>
And this is my copypaste code of the render
package
{
import flash.geom.Rectangle;
import ilog.charts.renderers.RadarColumnRenderer;
import mx.charts.chartClasses.GraphicsUtilities;
import mx.graphics.IFill;
import mx.graphics.IStroke;
public class RadarChartWorkaround extends RadarColumnRenderer
{
private function bbox(polygon:Array):Rectangle
{
var rect:Rectangle = new Rectangle(int.MAX_VALUE, int.MAX_VALUE, int.MIN_VALUE, int.MIN_VALUE);
for (var i:int = 0; i < polygon.length; i++)<br /> {
if (polygon[i].x < rect.x)<br /> rect.x = polygon[i].x;
if (polygon[i].y < rect.y)<br /> rect.y = polygon[i].y;
if (polygon[i].x > rect.width)
rect.width = polygon[i].x;
if (polygon[i].y > rect.height)
rect.height = polygon[i].y;
}
rect.width -= rect.x;
rect.height-= rect.y;
return rect;
}
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth, unscaledHeight);
graphics.clear();
var fill:IFill = data.fill;
var stroke:IStroke = getStyle("stroke");
var form:String = getStyle("form");
fill.begin(graphics, bbox(data.polygon));
GraphicsUtilities.drawPolyLine(graphics, data.polygon,
0, data.polygon.length,"x","y",
stroke,form);
fill.end(graphics);
}
}
}
Thank you in advance.
More...
[dmandrioli said:]
Hi,
Sorry, my mistake. Please remove this function call: [s]super.updateDisplayList(unscaledWidth, unscaledHeight);[/s]
Hope this helps,
SystemAdmin
110000D4XK
‏2009-06-09T19:34:03Z
[dmandrioli said:]
Hi,
Sorry, my mistake. Please remove this function call: [s]super.updateDisplayList(unscaledWidth, unscaledHeight);[/s]
Hope this helps,
More...
[carcelen said:]
Hi
Without this line now the example works fine but when I try in my charts throws this error:
TypeError: Error #1034: Type Coercion failed: cannot convert "RadarChartWorkaround" to mx.core.IFactory.
at ilog.charts.series::RadarColumnSeries/updateDisplayList()[/usr/flex/elixir2.0/flex-suite/trunk/build/bin/sources/library/chart/src/flex/ilog/charts/series/RadarColumnSeries.as:387]
at mx.core::UIComponent/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:6351]
at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:622]
at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:677]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]
Perhaps I'm programatically setting up badly the itemRenderer...
lineSerie=new RadarColumnSeries();
(lineSerie as RadarColumnSeries).setStyle("itemRenderer","RadarChartWorkaround");
Thank you in advance.
SystemAdmin
110000D4XK
‏2009-06-10T19:43:35Z
[carcelen said:]
Hi
Without this line now the example works fine but when I try in my charts throws this error:
TypeError: Error #1034: Type Coercion failed: cannot convert "RadarChartWorkaround" to mx.core.IFactory.
at ilog.charts.series::RadarColumnSeries/updateDisplayList()[/usr/flex/elixir2.0/flex-suite/trunk/build/bin/sources/library/chart/src/flex/ilog/charts/series/RadarColumnSeries.as:387]
at mx.core::UIComponent/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:6351]
at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:622]
at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:677]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]
Perhaps I'm programatically setting up badly the itemRenderer...
lineSerie=new RadarColumnSeries();
(lineSerie as RadarColumnSeries).setStyle("itemRenderer","RadarChartWorkaround");
Thank you in advance.
More...
[dmandrioli said:]
Hi,
To set the renderer using Action Script, you have to write:
...
(lineSerie as RadarColumnSeries).setStyle("itemRenderer", new ClassFactory(RadarChartWorkaround));
...
Hope this helps,
SystemAdmin
110000D4XK
‏2009-06-10T23:56:05Z
[dmandrioli said:]
Hi,
To set the renderer using Action Script, you have to write:
...
(lineSerie as RadarColumnSeries).setStyle("itemRenderer", new ClassFactory(RadarChartWorkaround));
...
Hope this helps,
More...
[carcelen said:]
It worked thanks
SystemAdmin
110000D4XK
‏2009-06-11T00:26:04Z
[carcelen said:]
It worked thanks
More...
Hello,
I am working on linechart
trying to do following
lineseriesInstance.setStyle("stroke",new ClassFactory(StrokeClass));
lineseriesInstance.setStyle("lineStroke",new ClassFactory(StrokeClassForLine));
but getting error as follows,
TypeError: Error #1034: Type Coercion failed: cannot convert mx.core::ClassFactory#2b33d01 to mx.graphics.IStroke.
at mx.charts.series::LineSeries/describeData()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\series\LineSeries.as:1202
at mx.charts.chartClasses::DataTransform/describeData()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\DataTransform.as:230
at mx.charts.chartClasses::AxisBase/describeData()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\AxisBase.as:177
at mx.charts.chartClasses::NumericAxis/get dataDescriptions()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\NumericAxis.as:1033
at mx.charts.chartClasses::NumericAxis/autoGenerate()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\NumericAxis.as:1050
at mx.charts.chartClasses::NumericAxis/updateCache()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\NumericAxis.as:761
at mx.charts.chartClasses::NumericAxis/update()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\NumericAxis.as:884
at mx.charts.chartClasses::NumericAxis/getLabelEstimate()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\NumericAxis.as:645
at mx.charts::AxisRenderer/measureLabels()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1740
at mx.charts::AxisRenderer/calcRotationAndSpacing()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1459
at mx.charts::AxisRenderer/adjustGutters()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1326
at mx.charts.chartClasses::CartesianChart/updateAxisLayout()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:1873
at mx.charts.chartClasses::CartesianChart/updateDisplayList()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:1355
at mx.core::UIComponent/validateDisplayList()E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6214
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
please help me.
Rahulkul
27000383MC
‏2010-06-04T04:25:57Z
Hello,
I am working on linechart
trying to do following
lineseriesInstance.setStyle("stroke",new ClassFactory(StrokeClass));
lineseriesInstance.setStyle("lineStroke",new ClassFactory(StrokeClassForLine));
but getting error as follows,
TypeError: Error #1034: Type Coercion failed: cannot convert mx.core::ClassFactory#2b33d01 to mx.graphics.IStroke.
at mx.charts.series::LineSeries/describeData()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\series\LineSeries.as:1202
at mx.charts.chartClasses::DataTransform/describeData()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\DataTransform.as:230
at mx.charts.chartClasses::AxisBase/describeData()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\AxisBase.as:177
at mx.charts.chartClasses::NumericAxis/get dataDescriptions()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\NumericAxis.as:1033
at mx.charts.chartClasses::NumericAxis/autoGenerate()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\NumericAxis.as:1050
at mx.charts.chartClasses::NumericAxis/updateCache()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\NumericAxis.as:761
at mx.charts.chartClasses::NumericAxis/update()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\NumericAxis.as:884
at mx.charts.chartClasses::NumericAxis/getLabelEstimate()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\NumericAxis.as:645
at mx.charts::AxisRenderer/measureLabels()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1740
at mx.charts::AxisRenderer/calcRotationAndSpacing()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1459
at mx.charts::AxisRenderer/adjustGutters()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1326
at mx.charts.chartClasses::CartesianChart/updateAxisLayout()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:1873
at mx.charts.chartClasses::CartesianChart/updateDisplayList()C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:1355
at mx.core::UIComponent/validateDisplayList()E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6214
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
please help me.
More...
Hi,
These style properties are IStroke, not ClassFactory, write something like:
lineseriesInstance.setStyle("stroke", new StrokeClass());
Hope this helps,
Damien

Related Links

Radar Chart - Custom Labels
Trouble with AngularAxisRenderer.labelRenderer on RadarChart
Multiple Stroke Colors for Radial Lines
could not find source for resource bundle ilogradarchart
using datafunction for RadarLineSeries
Modifying the Radar Chart
How to change thickness/color of radar chart border
Clickable points on radar line series?
how to work with the radar control
Changing the order of the radial axis
LinearGradient as areaFill
Get the selected label when clicks on Angular Axis
Move categories using the mouse
Minimum Category field on angular axis
Listener on angular axis of radar graph
Error #1009 at ilog.charts.series::RadarLineSeries/updateData()

Categories

DW
IBM messaging
Sterling Commerce
Developer Central
AIX and Linux
Lotus
Tivoli
i2 Software
LPM (Live Partition Mo...
IBM Verse
IBM Connections Cloud ...
IBM SmartCloud Notes
IBM OmniFind Enterpris...
IBM FileNet IDM Deskto...
IBM FileNet Content Ma...
IBM Kenexa Click and H...
IBM Kenexa CompAnalyst...
Application Security
PredictiveInsight
Jazz for Service Manag...
Tivoli Business Servic...
IBM SPSS Statistics Sy...
IBM Analytic Catalyst ...
IBM SPSS Collaboration...
Java Programmability f...
HATS HotSpot
IBM ILOG Elixir
Industry
Технология Java
WebSphere
IBM developerWorks Россия
Rational Performance T...
Rational DOORS adminis...
Rational Method Compos...
opensource
workplace
lotus
Test for satish
Comunita' tecnica AIX ...
Solaris to Linux Migra...
Retail
Government
Fabrication and Assembly
Banking
Automotive
IBM Automation Control...
Community
Open Source
Lotus
DB2 for Linux, UNIX, a...
Socially Integrated
Visualization
Part 2 - Challenge #10...
IBM HTTP Server
IBM Monitoring and Dia...
IBM Visual Configurati...
WebSphere Service Regi...
QRadar Extensions
DSM Extensions, Custom...
Offense Manager & Tuning
API
Network Surveillance, ...
Mobile Store Channel
iPhone Mobile Apps
Standards / Compliance
Performance / Scaling
E-Commerce/EDI/XML Cou...
Warehouse Management
Distributed Order Mana...
Business Process Modeling
Gentran Windows upgrad...
General Discussion
Connect:Direct
Product Information Ma...
Selling System Release...
Project Management and...
Adoption Rates
Comergent Security
Installation & Configu...
SDK & Tools
Zee Miscellaneous
Internationalization a...
Containerization, Pack...
Distributed Order Mana...
Extensibility
DB2
RDi Forum
Rules for .NET
BRMS Trial Support
Treemap
C++ Visualization Prod...
JRules Trial Support -...
Форум по AIX и UNIX
Документация по решени...
Scripting Tools for SA...
HeapRoots
IBM Client Application...
Maximo and process aut...
IBM Spectrum Control
Building Information M...
IBM Tivoli Asset Disco...
Tivoli Decision Suppor...
IBM Enterprise Asset M...
Ajax forum
AIX Open Source Software
AIX Forum for developers
AIX Networking
IT architecture forum
Cluster Systems Manage...
Power Architecture forum
Lotus Forms
Exploring Semantic Web...
Server-side Java progr...
ibmpub.java.aix
ibmpub.java.vmesa

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile