Skip to content

Instantly share code, notes, and snippets.

View logaan's full-sized avatar
🥔
Starchy

Logan Campbell logaan

🥔
Starchy
View GitHub Profile
@logaan
logaan / gist:41237
Created December 29, 2008 10:37 — forked from benaskins/gist:41203
// X and Y axis labels and captions default to global style if not provided
targets = ["xAxisLabel", "yAxisLabel", "yAxisCaption", "hoverLabel", "hoverValue"]
types = ["Color", "Font", "FontSize"]
for each (type in types) {
for each (target in targets) {
// Note: I'm using array notation for attributes rather than dot notation
// (foo["bar"] rather than foo.bar)
if (!this.settings[target + type]) {
this.settings[target + type] = this.settings["label" + type]