Created
May 13, 2015 04:33
-
-
Save ryanvgates/f2ea7ae442b078495b71 to your computer and use it in GitHub Desktop.
Step 4 - Set Axis Label Width
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g = new Dygraph( | |
// containing div | |
document.getElementById("graphdiv"), | |
// CSV or path to a CSV file. | |
"Fort Lauderdale Data Snapshot-Reoriented.csv", | |
{ | |
title: 'Fort Lauderdale Budget Data', | |
width: 800, | |
height: 480, | |
axisLabelWidth: 100, | |
axes: { | |
y: { | |
axisLabelFormatter: function(x) { | |
return numeral(x).format('($ 0.00 a)'); | |
}, | |
valueFormatter: function(x) { | |
return numeral(x).format('($ 0.00 a)'); | |
}, | |
} | |
}, | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment