[flexcoders] Re: BarChart Bug when using a Series LabelFunction and type="stacked"

2008-03-06 Thread Sherpa_Ed
Solved the problem, at least for us, by setting a specific font size.

Cheers,
Eddie

--- In flexcoders@yahoogroups.com, "Sherpa_Ed" <[EMAIL PROTECTED]>
wrote:
>
> After further testing, let me update what I've found. It turns out tha
> having a labelFunction isn't the issue. The problem is in setting a
> labelPosition, whether "inside" or "outside". Once text is display,
> the failure occurs. Also - it works fine with only one series, but the
> fatal mixture is:
> 1) 2 Bar Series
> 2) barSeries.setStyle("labelPostion", "outside")  // (or inside)
> 3) barChart.type = "stacked"
> 
> -Eddie
> --- In flexcoders@yahoogroups.com, "Sherpa_Ed" 
> wrote:
> >
> > Once I moved my code from Beta 3 to the released version, a new bug
> > appeared. Here's the dump, with the problem description below:
> > 
> > TypeError: Error #1009: Cannot access a property or method of a null
> > object reference.
> >
>
mx.charts::BarChart/http://www.adobe.com/2006/flex/mx/internal::measureLabels()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\BarChart.as:672]
> >
>
mx.charts.series::BarSeries/updateTransform()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\series\BarSeries.as:1887]
> >
>
mx.charts.chartClasses::Series/validateTransform()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Series.as:1486]
> >
>
mx.charts.chartClasses::Series/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Series.as:828]
> >
>
mx.charts.series::BarSeries/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\series\BarSeries.as:1013]
> >
>
mx.core::UIComponent/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6214]
> >
>
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602]
> >
>
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675]
> > at Function/http://adobe.com/AS3/2006/builtin::apply()
> >
>
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
> > 
> > Essentially, I have a simple BarChart with 2 series.
> > If I don't set a labelFunction on the barSeries, all is good. Once I
> > add my labelFunction, which when reduced for diagnosing this bug only
> > returns "test" (or whatever text I try), I get the dump pretty
> > quickly. If I change the barChart.type to "clustered", it's fine, but
> > having both "stacked" AND the barSeries labelFunction will cause this
> > bug. 
> > Keep in mind that I have data being fed into the chart so I can't
> > guarantee that it will fail just using static data, since it doesn't
> > always fail immediately for me. Within seconds, though.
> > 
> > So - the question is - in looking at the dump, is the problem on my
> > end, or Adobes? I've looked at the mx_internal measureLabels() code,
> > but can't determine what else I can change to get past this issue.
> > 
> > Thanks for any help with this.
> > -Eddie
> >
>




[flexcoders] Re: BarChart Bug when using a Series LabelFunction and type="stacked"

2008-03-06 Thread Sherpa_Ed
After further testing, let me update what I've found. It turns out tha
having a labelFunction isn't the issue. The problem is in setting a
labelPosition, whether "inside" or "outside". Once text is display,
the failure occurs. Also - it works fine with only one series, but the
fatal mixture is:
1) 2 Bar Series
2) barSeries.setStyle("labelPostion", "outside")  // (or inside)
3) barChart.type = "stacked"

-Eddie
--- In flexcoders@yahoogroups.com, "Sherpa_Ed" <[EMAIL PROTECTED]>
wrote:
>
> Once I moved my code from Beta 3 to the released version, a new bug
> appeared. Here's the dump, with the problem description below:
> 
> TypeError: Error #1009: Cannot access a property or method of a null
> object reference.
>
mx.charts::BarChart/http://www.adobe.com/2006/flex/mx/internal::measureLabels()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\BarChart.as:672]
>
mx.charts.series::BarSeries/updateTransform()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\series\BarSeries.as:1887]
>
mx.charts.chartClasses::Series/validateTransform()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Series.as:1486]
>
mx.charts.chartClasses::Series/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Series.as:828]
>
mx.charts.series::BarSeries/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\series\BarSeries.as:1013]
>
mx.core::UIComponent/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6214]
>
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602]
>
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675]
>   at Function/http://adobe.com/AS3/2006/builtin::apply()
>
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
> 
> Essentially, I have a simple BarChart with 2 series.
> If I don't set a labelFunction on the barSeries, all is good. Once I
> add my labelFunction, which when reduced for diagnosing this bug only
> returns "test" (or whatever text I try), I get the dump pretty
> quickly. If I change the barChart.type to "clustered", it's fine, but
> having both "stacked" AND the barSeries labelFunction will cause this
> bug. 
> Keep in mind that I have data being fed into the chart so I can't
> guarantee that it will fail just using static data, since it doesn't
> always fail immediately for me. Within seconds, though.
> 
> So - the question is - in looking at the dump, is the problem on my
> end, or Adobes? I've looked at the mx_internal measureLabels() code,
> but can't determine what else I can change to get past this issue.
> 
> Thanks for any help with this.
> -Eddie
>




[flexcoders] BarChart Bug when using a Series LabelFunction and type="stacked"

2008-03-06 Thread Sherpa_Ed
Once I moved my code from Beta 3 to the released version, a new bug
appeared. Here's the dump, with the problem description below:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
mx.charts::BarChart/http://www.adobe.com/2006/flex/mx/internal::measureLabels()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\BarChart.as:672]
mx.charts.series::BarSeries/updateTransform()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\series\BarSeries.as:1887]
mx.charts.chartClasses::Series/validateTransform()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Series.as:1486]
mx.charts.chartClasses::Series/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Series.as:828]
mx.charts.series::BarSeries/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\series\BarSeries.as:1013]
mx.core::UIComponent/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6214]
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602]
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675]
at Function/http://adobe.com/AS3/2006/builtin::apply()
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]

Essentiall, I have a simple BarChart with 2 series.
If I don't set a labelFunction on the barSeries, all is good. Once I
add my labelFunction, which when reduced for diagnosing this bug only
returns "test" (or whatever test I try), I get the dump pretty
quickly. If I change the barChart.type to "clustered", it's fine, but
having both "stacked" AND the barSeries labelFunction will cause this
bug. 
Keep in mind that I have data being fed into the chart so I can't
guarantee that it will fail just using static data, since it doesn't
always fail immediately for me. Within seconds, though.

So - the question is - in looking at the dump, is the problem on my
end, or Adobes? I've looked at the mx_internal measureLabels() code,
but can't determine what else I can change to get past this issue.

Thanks for any help with this.
-Eddie



[flexcoders] Re: Charting - problem setting AxisRenderer's "showLine" style via AS3

2008-03-05 Thread Sherpa_Ed
Nevermind - found out the problem from the good folks at LiveDocs. 
Turns out that "false" shouldn't be in quotes (though it'll still 
work WITH quotes for the showLabels style).



--- In flexcoders@yahoogroups.com, "Sherpa_Ed" <[EMAIL PROTECTED]> 
wrote:
>
> --- In flexcoders@yahoogroups.com, "Sherpa_Ed"  
> wrote:
> >
> > Goal: Turn off axis lines and labels in ColumnChart
> > 
> > Problem: Doesn't seem to work via AS3 (works fine in MXML)
> > 
> > I can turn off the axis label without problem using:
> >myAxisRenderer.setStyle("showLabels", "false"); 
> > 
> > but I can't turn off the axis line when adding:
> >myAxisRenderer.setStyle("showLine", "false");
> > 
> > 
> > What am I doing wrong, or is it a bug?
> > 
> > Thanks in advance,
> > -Eddie
> >
> Here's sample code demonstrating the issue:
> 
> 
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
> showDataTips="true">
> 
>  dataProvider="{expenses}" 
> categoryField="Month"
> />
> 
> 
>  showLabels="false"/>
> 
> 
> 
> 
> 
> 
>  displayName="Expenses" />
> 
> 
> 
>  
> 
>




[flexcoders] Re: Charting - problem setting AxisRenderer's "showLine" style via AS3

2008-03-04 Thread Sherpa_Ed
--- In flexcoders@yahoogroups.com, "Sherpa_Ed" <[EMAIL PROTECTED]> 
wrote:
>
> Goal: Turn off axis lines and labels in ColumnChart
> 
> Problem: Doesn't seem to work via AS3 (works fine in MXML)
> 
> I can turn off the axis label without problem using:
>myAxisRenderer.setStyle("showLabels", "false"); 
> 
> but I can't turn off the axis line when adding:
>myAxisRenderer.setStyle("showLine", "false");
> 
> 
> What am I doing wrong, or is it a bug?
> 
> Thanks in advance,
> -Eddie
>
Here's sample code demonstrating the issue:


http://www.adobe.com/2006/mxml";>



   















 





[flexcoders] Charting - problem setting AxisRenderer's "showLine" style via AS3

2008-03-04 Thread Sherpa_Ed
Goal: Turn off axis lines and labels in ColumnChart

Problem: Doesn't seem to work via AS3 (works fine in MXML)

I can turn off the axis label without problem using:
   myAxisRenderer.setStyle("showLabels", "false"); 

but I can't turn off the axis line when adding:
   myAxisRenderer.setStyle("showLine", "false");


What am I doing wrong, or is it a bug?

Thanks in advance,
-Eddie




[flexcoders] Re: Flex 3 Compiler Bug? 1119 Error creating BarChart

2008-03-01 Thread Sherpa_Ed
Well well well. Turns out the problem is that my app is called 
BarChart, and therein lies the conflict. Since I need to keep the app 
name as is, I just instantiated the chart using the full namespace 
name: 
   barchart:mx.charts.BarChart = new mx.charts.BarChart();

Case closed.



--- In flexcoders@yahoogroups.com, "Sherpa_Ed" <[EMAIL PROTECTED]> 
wrote:
>
> I had encountered a 1119 error when creating a BarChart using Beta 
3 
> and assumed it would be fixed in the release. Unfortunately, I'm 
still 
> getting the same bug and am curious if anyone might be able to shed 
> light on what could be the problem - either on my end, or perhaps 
if 
> this is a known deferred bug (can't imagine!). 
> I entered a bug a few weeks back that seemed to just sit in the 
system 
> without comment. Here's the URL with a description and images:
> 
> http://bugs.adobe.com/jira/browse/FB-12025
> 
> Strange little bug. If I change the BarChart to either a 
CartesianChart 
> or ColumnChart, it compiles fine. It fails only as a BarChart. 
> 
> Any thoughts?
>




[flexcoders] Flex 3 Compiler Bug? 1119 Error creating BarChart

2008-03-01 Thread Sherpa_Ed
I had encountered a 1119 error when creating a BarChart using Beta 3 
and assumed it would be fixed in the release. Unfortunately, I'm still 
getting the same bug and am curious if anyone might be able to shed 
light on what could be the problem - either on my end, or perhaps if 
this is a known deferred bug (can't imagine!). 
I entered a bug a few weeks back that seemed to just sit in the system 
without comment. Here's the URL with a description and images:

http://bugs.adobe.com/jira/browse/FB-12025

Strange little bug. If I change the BarChart to either a CartesianChart 
or ColumnChart, it compiles fine. It fails only as a BarChart. 

Any thoughts?




[flexcoders] NOSERVER_FLEX_OUTPUT_FOLDER - what is this error about?

2008-02-29 Thread Sherpa_Ed
I just upgraded to Flex 3 and am getting an new error message - in fact 
four of them, all the same:

'NOSERVER_FLEX_OUTPUT_FOLDER' is not a valid location. The location is 
relative to undefined workspace path 
variable 'NOSERVER_FLEX_OUTPUT_FOLDER'. 

I've searched, but can't find any mention of 
this "NOSERVER_FLEX_OUTPUT_FOLDER" keyword. Does anyone know anything 
about it, or what might potentially be the problem?

In an attempt to solve it, I added a NOSERVER_FLEX_OUTPUT_FOLDER entry 
as a defined path variable in the Linked Resources dialog 
(Preferences / General / Workspace / Linked Resources), but it had no 
effect.

Thanks in advance,
Eddie