Hi Daniel.
 
- the charts all have a style called chartSeriesStyles. This style is an array of strings, each mapping to the name of a CSS selector.  These are the selectors that the chart applies to each series, in turn, to get different colors, strokes, etc. per series.
- each chart type sets up a set of default selectors, and stuffs the names of those selectors into the chartSeriesStyles style. This is how LineCharts give different strokes to each line series, while columnCharts give different fills to each column series.
- the default styles set up by each chart type uses that default halo colors array as a basis for setting up those selectors.
 
 
So rather than modifying the defaultColors array, I'd suggest you instead just set up your own chartSeriesStyles selectors, with your own colors.  I believe there's an example in my chart sampler at http://www.quietlyscheming.com/
 
Ely.
 
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Tuppeny
Sent: Monday, October 16, 2006 4:56 AM
To: [email protected]
Subject: [flexcoders] How do I recompile charts?

I've modified the defaultColors list in the HaloDefaults.as, to
customise the colours that appear in pie chart wedges, but it seems my
app is using a pre-compiled version, and I don't see the changes.

I can't find any way to rebuild the charts (without a lot of faffing
around), as there's no build file, and when I try referencing the
source folders and removing the reference to charts.swc, I just get
loads of errors (such as mx:Application and mx:PieChart not being
valid, even though they still appear in the intellisense.

How can I get these changes to the default colours into my project? If
there's a better way (I'd rather not modify the source on 5 developer
machines, but I don't want to have to write loads of code either).

Thanks

The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd.


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to