Permalink
Browse files

Add ability to change the axis label color.

This adds an additional axis option, "labelcolor" that allows you to specify an HTML
color string to set the color of the axis labels.
  • Loading branch information...
1 parent 66c331c commit c362096a725eebca18887701cd977f66bc7a2635 Matt Farmer committed Apr 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 g.raphael.js
View
@@ -835,7 +835,7 @@ Raphael.g = {
t = ends.to,
i = ends.power,
j = 0,
- txtattr = { font: "11px 'Fontin Sans', Fontin-Sans, sans-serif" },
+ txtattr = { font: "11px 'Fontin Sans', Fontin-Sans, sans-serif", 'fill': (opts.labelcolor) ? opts.labelcolor : '#000000'},
text = paper.set(),
d = (t - f) / steps,
horizontalLabels = (opts.horizontalLabels == undefined) ? true : opts.horizontalLabels,

0 comments on commit c362096

Please sign in to comment.