Hi All -

This is quite urgent issue in my project.  Here is the issue

Steps to reproduce:
1. Create a DateTimeAxis component

<mx:DateTimeAxis id="dateAxis" dataUnits="{units}" dataInterval="1"
labelUnits="{units}" displayLocalTime="true" title="{xAxis}" />
<mx:AxisRenderer id="horizontalAxisRenderer"
                    axis="{categoryAxis}" labelAlign="center"
                    canDropLabels="false"
                />

2. Create a Column chart and set the horizontal Axis as below
     chart = new ColumnChart();
    (chart as CartesianChart).horizontalAxis = dateAxis;
    (chart as CartesianChart).horizontalAxisRenderers = new Array
(dateAxisHorizontalRenderer);

3. Set the Title property of dataAxis object
    xAxis = "Date Range"


 Actual Results:
TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at mx.charts::AxisRenderer/drawTitle()[C:\work\flex\dmv_automation
\projects\datavisualisation\src\mx\charts\AxisRenderer.as:2961]
at mx.charts::AxisRenderer/updateDisplayList()[C:\work\flex
\dmv_automation\projects\datavisualisation\src\mx\charts
\AxisRenderer.as:1144]
at mx.core::UIComponent/validateDisplayList()[C:\autobuild\3.x
\frameworks\projects\framework\src\mx\core\UIComponent.as:6351]
at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.x
\frameworks\projects\framework\src\mx\managers\LayoutManager.as:622]
at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.x
\frameworks\projects\framework\src\mx\managers\LayoutManager.as:695]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.x
\frameworks\projects\framework\src\mx\core\UIComponent.as:8733]
at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.x
\frameworks\projects\framework\src\mx\core\UIComponent.as:8673]



Does anyone has any idea on whats going on with this?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to