projects
/
MojoFacets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12bc7b8
)
pack one more y label before top one
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 18 May 2010 11:28:10 +0000
(13:28 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 18 May 2010 11:28:10 +0000
(13:28 +0200)
public/facet_graph.js
patch
|
blob
|
history
diff --git
a/public/facet_graph.js
b/public/facet_graph.js
index
700593d
..
c57aa36
100644
(file)
--- a/
public/facet_graph.js
+++ b/
public/facet_graph.js
@@
-38,7
+38,8
@@
var y_num_labels = Math.round( data.height / 20 ); // padding between vertical l
var y_inc = Math.ceil( data.y_range / y_num_labels );
var y_pos = data.min_y;
-while( y_pos < data.max_y - y_inc ) {
+var y_last_pos = Math.ceil( data.max_y - y_inc / 2 );
+while( y_pos < y_last_pos ) {
data.y_labels.push( y_pos );
y_pos += y_inc;
}