flex4中,图的canDropLabel属性一定要去掉

canDropLabel属性已经被弃用了,如果使用它,会报引用不能为空的异常。

TypeError: Error #1009: 无法访问空对象引用的属性或方法。
at mx.charts.series::ColumnSeries/findDataPoints()[E:\dev\4.0.0\frameworks\projects\datavisualization\src\mx\charts\series\ColumnSeries.as:1635]
at mx.charts.chartClasses::ChartBase/findDataPoints()[E:\dev\4.0.0\frameworks\projects\datavisualization\src\mx\charts\chartClasses\ChartBase.as:2202]
at mx.charts.chartClasses::ChartBase/mouseMoveHandler()[E:\dev\4.0.0\frameworks\projects\datavisualization\src\mx\charts\chartClasses\ChartBase.as:4882]

TypeError: Error #1009: 无法访问空对象引用的属性或方法。
at mx.charts::AxisRenderer/measureHorizontalGutters()[E:\dev\4.0.0\frameworks\projects\datavisualization\src\mx\charts\AxisRenderer.as:2275]
at mx.charts::AxisRenderer/calcRotationAndSpacing()[E:\dev\4.0.0\frameworks\projects\datavisualization\src\mx\charts\AxisRenderer.as:1889]

你可能感兴趣的:(label)