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

RadarColumnSeries Remove Column Tapering on Large Values
Need to create radar chart without writing code
Radar Labels don\'t update
Radarchart gradient background
Run Time Radar Data
Rotating the angular axis
Set the chart.type="Cloumn" default
pls help me
How could I change RadarLinesSeries using Action Script?
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

Categories

DW
IBM Blockchain
Compiler Cafe
IBM SmartCloud Applica...
BigFix
Rational
Weblogs
Tivoli
i2 Software
IBM Connections Cloud ...
IBM SmartCloud Notes
FileNet Business Proce...
IBM FileNet Image Manager
IBM Kenexa CompAnalyst...
IBM Kenexa CompAnalyst...
Campaign
NetInsight OnDemand
NetInsight Enterprise
Detect
IBM SmartCloud Applica...
IBM TRIRIGA UX Framework
IBM TRIRIGA CAD Integr...
Open Beta Feedback
Jazz for Service Manag...
Jazz for Service Manag...
IBM Tivoli Monitoring ...
General Discussion
The SPSS Community web...
R Programmability in S...
Getting Started with I...
RDi - Rational Develop...
Cognos 8
Cognos Controller
BI Strategies
Reportar contenido ina...
Rational
Open Source
Rational Publishing En...
Rational Performance T...
Rational Synergy
Installing/Configuring...
Performance Management...
webarchitecture
Solaris to Linux Migra...
Government
Financial markets
All blogs
IBM University
IBM i
Community
Ajax
AIX and UNIX
Power Architecture
Linux
IBM DB2 Express-C Forum
Optim LUW
Informix developer and...
DB2 for Linux, UNIX, a...
InfoSphere Metadata Se...
IBM InfoSphere Big Mat...
IBM Content Integrator
The CDC (Change Data C...
IBM Business Process M...
WebSphere Message Broker
IBM HTTP Server
WebSphere eXtreme Scale
IBM WebSphere Applicat...
**NEW** Sterling File ...
Business Solutions Forums
Gentran Integration Su...
Education
Mobile Store Channel
Gentran Server for AS/400
JSP Webpages in GIS
**NEW** Sterling File ...
Connect:Enterprise Gat...
Connect:Express Windows
Product Information Ma...
The Selling System Use...
ROI Issues
Adoption Rates
How To's
Distance Education Sup...
Comergent Courses
Distance Education Sup...
Internationalization (...
Release 6.0
Release 5.6
Yard Management
Receiving and putaway
Outbound planning
Extensibility
Oracle
RDi Forum
RPG Cafe
IBM z Systems Developm...
IBM ILOG BRMS Beta Pro...
Gauges, Indicators and...
Radar charts
Treemap
Questions and Best Pra...
SAP
Форум IBM developerWor...
FAQ
aW Services
Visual Performance Ana...
IBM Spectrum Control
IBM Enterprise Asset M...
IBM SCORE
Using developerWorks
IBM WebSphere Applicat...
developerWorks XML zon...
Atom and RSS forum
Client-side Java progr...
Multithreaded Java pro...
Java Virtual Machine (...
Middleware and Web ser...
IBM WebSphere SDK for ...

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile