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
-~----------~----~----~----~------~----~------~--~---