littlewoodwood / birdeye

Automatically exported from code.google.com/p/birdeye
0 stars 0 forks source link

Unable to Set any Chart Colors #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. <mc:MicroAreaChart dataProvider="{acMC}" height="100%" width="100%" 
    color="0x66CCFF"  />    
2.
3.

What is the expected output? What do you see instead?

The color of the area chart should change to 0x66CCFF, however, it stayed 
black.

What version of the product are you using? On what operating system?

I downloaded the source on 12/05/2008, and created a swc using FB3.

Please provide any additional information below.

I also tried the following, none worked:
1. colors="{ new Array( '0x66CCFF' ) }"
2. fills="{ new Array( new SolidFill( 0x66CCFF, 0.3 ) ) }"

I think there's a bug in MicroAreaChart.as Line 106.  My proposed change:
if( colors != null || !isNaN( color ) )

For some reason, I can't debug into useColor(Number) in BasicMacroChart.  
The return value of useColor seems to be null all the time (for me).

Original issue reported on code.google.com by minnm...@gmail.com on 6 Dec 2008 at 6:12

GoogleCodeExporter commented 8 years ago
I am using Windows XP.

Original comment by minnm...@gmail.com on 6 Dec 2008 at 6:14

GoogleCodeExporter commented 8 years ago
Fix committed.  Thanks for the report.

Original comment by jbell...@unog.ch on 12 Dec 2008 at 10:31

GoogleCodeExporter commented 8 years ago
It's fixed now. 
If you use color for the following charts it will work:
MicroArea, MicroColumn, MicroPlot, MicroLine, MicroBar, MicroWinLoose.

Given the different nature of the other charts (Pie, 100Bar, BulletGraph) they 
should not be used with a single color.

The array colors should only be used to differentiate each data element of the 
chart, and therefore you should provide at least the same number of colors than 
the 
number of data elements you have in the chart. If you only need to set a single 
color, than simply use the color property, which works well now. 
Thanks for reporting this issue.

Original comment by f4us...@gmail.com on 12 Dec 2008 at 10:40