Thanks for your response. yes I tried the same way as you had said. Things
are not consistently working though. I dont get the error often now.. but it
occurs occassionaly. I am not able to figure out why??? here is the code



<customAxisRenderer:CustomChartAxisRenderer id="horizontalAxisRenderer"
titleRenderer="com.itemRenderers.CustomChartTitleRenderer" labelAlign="
center" canDropLabels="false" />



*package* com.itemRenderers

{

*import* mx.charts.chartClasses.ChartLabel;

*import* mx.core.IDataRenderer;

*public* *class* CustomChartTitleRenderer *extends* ChartLabel
*implements*IDataRenderer

{

*override* *protected* *function* updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):*void*

{

*if* (parent == *null*)

{

*return*;

}

*super*.updateDisplayList(unscaledWidth, unscaledHeight);

}

 }

}
 As a workaround for this problem I tried to use Category Axis instead of
dateAxis and now a different problem. It looks like another bug with Flex.
The problem is exactly the same as described in
http://bugs.adobe.com/jira/browse/FLEXDMV-1821


Any help is greatly appreciated.

Many Thanks!
Veena


On Mon, Aug 24, 2009 at 9:32 PM, kalavati singh <[email protected]>wrote:

> Hello Veena,
>            Did you create CustomChartTitleRenderer .as  in events
> package.Then  use in the following manner
> titleRenderer="events.CustomChartTitleRenderer" in the axisrender.If still
> you get the error let me know
>
>
> Regards
> Kalavati
>
>
>  On Tue, Aug 25, 2009 at 3:12 AM, Veena Chezhian <
> [email protected]> wrote:
>
>> Thanks for your information. I tried following the instruction and still
>> getting the problem.
>>
>>
>>
>> On Fri, Aug 21, 2009 at 3:23 AM, kalavati singh <[email protected]
>> > wrote:
>>
>>> Hi Veena,
>>>        I got the same error in my code.see the below message in adobe
>>> forum
>>>
>>>
>>> http://forums.adobe.com/thread/456031?tstart=0
>>>
>>>  Its a bug & they have   given a wrap around for it.If you need any
>>> further details let me know
>>>
>>> Kalavati
>>>
>>>
>>> On Thu, Aug 20, 2009 at 1:14 PM, Veena <[email protected]>wrote:
>>>
>>>>
>>>> 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()<http://adobe.com/AS3/2006/builtin::apply%28%29>
>>>> 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