PrevorCZ / flot

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

graph tickLabels can hang off the side of the graph #64

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. have a date range label (or some label that is relatively wide: mine is
100px)
2. have it show a tickMark relatively close to either edge of the graph
3. watch it bleed off the graph area

What is the expected output? What do you see instead?
see images

What version of the product are you using? On what operating system?
latest 0.5

Please provide any additional information below.

this patch fixes the xAxis label bleeding issue, plus consolidates the
functionality a bit, saving a few bytes (342 to be exact...wow, speachless)

Original issue reported on code.google.com by adam.gre...@gmail.com on 14 Oct 2008 at 3:05

Attachments:

GoogleCodeExporter commented 9 years ago
Brilliant! However, I tested it with dual axes, and I don't think you got all 
cases
quite right. If you modify the dual axis example and put the x axis at the top 
(with
xaxis: 2 for the two datasets and xaxis -> x2axis in the options), then the top
labels are not aligned correctly. Would you mind fixing this?

Original comment by olau%iol...@gtempaccount.com on 14 Oct 2008 at 4:17

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 8 May 2012 at 8:04