projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
be a little less aggressive in underlayCallback changes
[dygraphs.git]
/
tests
/
underlay-callback.html
diff --git
a/tests/underlay-callback.html
b/tests/underlay-callback.html
index
5c47582
..
075f893
100644
(file)
--- a/
tests/underlay-callback.html
+++ b/
tests/underlay-callback.html
@@
-26,8
+26,9
@@
showRoller: true,
errorBars: true,
showRoller: true,
errorBars: true,
- underlayCallback: function(canvas, area, layout) {
- var splitHeight = area.h * (layout.yscale * (2.25 - layout.minyval));
+ underlayCallback: function(canvas, area, g) {
+ var splitHeight = g.toDomCoords(null, 2.25)[1];
+
canvas.fillStyle = 'pink';
canvas.fillRect(area.x, area.y + area.h, area.w, -splitHeight);
canvas.fillStyle = 'lightblue';
canvas.fillStyle = 'pink';
canvas.fillRect(area.x, area.y + area.h, area.w, -splitHeight);
canvas.fillStyle = 'lightblue';