Fixed Issue #10 - Part of Axis hidden w/tooltips

gh-pages
John Kiernander 2013-09-02 20:39:48 +01:00
parent f4fe66ddaa
commit 9ad4657961
2 changed files with 33 additions and 9 deletions

40
dist/dimple.v1.js vendored
View File

@ -2334,7 +2334,10 @@ var dimple = {
.delay(animDuration / 2)
.duration(animDuration / 2)
.ease("linear")
.attr("y2", dropDest.y);
// Added 1px offset to cater for svg issue where a transparent
// group overlapping a line can sometimes hide it in some browsers
// Issue #10
.attr("y2", (cy < dropDest.y ? dropDest.y - 1 : dropDest.y + 1));
}
// Add a drop line to the y axis
@ -2353,7 +2356,10 @@ var dimple = {
.delay(animDuration / 2)
.duration(animDuration / 2)
.ease("linear")
.attr("x2", dropDest.x);
// Added 1px offset to cater for svg issue where a transparent
// group overlapping a line can sometimes hide it in some browsers
// Issue #10
.attr("x2", (cx < dropDest.x ? dropDest.x - 1 : dropDest.x + 1));
}
// Add a group for text
@ -2612,7 +2618,10 @@ var dimple = {
.delay(animDuration / 2)
.duration(animDuration / 2)
.ease("linear")
.attr("y2", dropDest.y);
// Added 1px offset to cater for svg issue where a transparent
// group overlapping a line can sometimes hide it in some browsers
// Issue #10
.attr("y2", (y < dropDest.y ? dropDest.y - 1 : dropDest.y + 1));
}
// Add a drop line to the y axis
@ -2631,7 +2640,10 @@ var dimple = {
.delay(animDuration / 2)
.duration(animDuration / 2)
.ease("linear")
.attr("x2", dropDest.x);
// Added 1px offset to cater for svg issue where a transparent
// group overlapping a line can sometimes hide it in some browsers
// Issue #10
.attr("x2", (x < dropDest.x ? dropDest.x - 1 : dropDest.x + 1));
}
// Add a group for text
@ -2922,7 +2934,10 @@ var dimple = {
.delay(animDuration / 2)
.duration(animDuration / 2)
.ease("linear")
.attr("y2", dropDest.y);
// Added 1px offset to cater for svg issue where a transparent
// group overlapping a line can sometimes hide it in some browsers
// Issue #10
.attr("y2", (cy < dropDest.y ? dropDest.y - 1 : dropDest.y + 1));
}
// Add a drop line to the y axis
@ -2941,7 +2956,10 @@ var dimple = {
.delay(animDuration / 2)
.duration(animDuration / 2)
.ease("linear")
.attr("x2", dropDest.x);
// Added 1px offset to cater for svg issue where a transparent
// group overlapping a line can sometimes hide it in some browsers
// Issue #10
.attr("x2", (cx < dropDest.x ? dropDest.x - 1 : dropDest.x + 1));
}
// Add a group for text
@ -3299,7 +3317,10 @@ var dimple = {
.delay(animDuration / 2)
.duration(animDuration / 2)
.ease("linear")
.attr("y2", dropDest.y);
// Added 1px offset to cater for svg issue where a transparent
// group overlapping a line can sometimes hide it in some browsers
// Issue #10
.attr("y2", (cy < dropDest.y ? dropDest.y - 1 : dropDest.y + 1));
}
// Add a drop line to the y axis
@ -3318,7 +3339,10 @@ var dimple = {
.delay(animDuration / 2)
.duration(animDuration / 2)
.ease("linear")
.attr("x2", dropDest.x);
// Added 1px offset to cater for svg issue where a transparent
// group overlapping a line can sometimes hide it in some browsers
// Issue #10
.attr("x2", (cx < dropDest.x ? dropDest.x - 1 : dropDest.x + 1));
}
// Add a group for text

File diff suppressed because one or more lines are too long