HumbleSoftware / Flotr2

Graphs and Charts for Canvas in JavaScript.
http://www.humblesoftware.com/flotr2/
MIT License
2.45k stars 528 forks source link

fixed margin for axis labels, from left and from right #188

Closed shimondoodkin closed 11 years ago

shimondoodkin commented 11 years ago

i need option to set fixed space for axis labels, from left and from right

axis spacing

cesutherland commented 11 years ago

I have made this configurable explicitly per-axis.

xaxis : {
  margin : 24
}

A better option (and the one that I use in projects such as envision) is to turn off the margin entirely:

grid : {
  outline : ''
},
yaxis : {
  margin : false
},
xaxis : {
  margin : false
}

Then draw the border and position the labels with CSS.

shimondoodkin commented 11 years ago

Thank you very much. I could not figure out how to do it by myself.