Hi,
I had this horrible problem but the trick is in try catch block, the code
would be:
onChartMouseMove(e:MouseEvent):void
{
try{
var mouseOverData:Array =
chart.series[0].dataTransform.invertTransform(chart.mouseX, chart.mouseY)
}
catch
{
}
}
Please let me know if this helped you.
Cheers,
Viktor Stevich
informtomani wrote:
>
> hi
> i am using combobox to change data in chart dynamically. In mouse
> event of chart i am retrieving data-point using the below function.
> onChartMouseMove(e:MouseEvent):void
> {
> var mouseOverData:Array =
> chart.series[0].dataTransform.invertTransform(chart.mouseX, chart.mouseY)
> }
>
> while immediately moving the mouse over the chart. i am getting an error
> as
>
> TypeError: Error #1009: Cannot access a property or method of a null
> object reference.
> at
> mx.charts.series::LineSeries/findDataPoints()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\series\LineSeries.as:1356]
> at
> mx.charts.chartClasses::ChartBase/findDataPoints()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\ChartBase.as:1974]
> at
> mx.charts.chartClasses::ChartBase/mouseMoveHandler()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\ChartBase.as:4306]
>
> plz help me to solve this problem.
>
> Regards
> mani
>
>
--
View this message in context:
http://old.nabble.com/getting-error-for-mouse-over-on-chart-tp27269388p28606167.html
Sent from the Flex India mailing list archive at Nabble.com.
--
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.