Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Set any Chart Colors #1

Closed
GoogleCodeExporter opened this issue Jun 4, 2015 · 3 comments
Closed

Unable to Set any Chart Colors #1

GoogleCodeExporter opened this issue Jun 4, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

I am using Windows XP.

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

@GoogleCodeExporter
Copy link
Author

Fix committed.  Thanks for the report.

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

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant