Elvina456 / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

tick label align in xaxis #364

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
To help position the labels in custom ticks i've made a little patch in the 
copy of flot that its used in my project, basically now you can add one new 
option to "xaxis" and "x2axis" to specify the align of the label box: 
('left','right','center'), defaults to center so its backwards compatible.

Feel free to add to flot if you're interested (see attach)

Original issue reported on code.google.com by ppedre...@gmail.com on 21 Jun 2010 at 4:33

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by olau%iol...@gtempaccount.com on 14 Dec 2010 at 4:29

GoogleCodeExporter commented 8 years ago
This patch doesn't seem to work anymore with flot 1.7 as the label drawing 
technique seems to have changed significantly.

Are there any plans to introduce the feature of more precisely positioned 
labels in the future?

A specific application I have in mind is the following: I'd like to put just 
two labels on a bottom axis to mark both the maximum and the minimum value. 
With the default centred positioning flot uses, the labels (which are years, 
i.e. four digit numbers) extend beyond the end of the graph. To get a nice and 
compact look, I'd like the left label to be left aligned with the edge of the 
graph and the right label to be right aligned with it.

Original comment by cv4...@gmail.com on 30 Jun 2011 at 3:28

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 9 May 2012 at 12:53