Fixed Issue #10 - Hidden Axis w/tooltip

master
John Kiernander 2013-09-02 20:38:39 +01:00
parent d1490a63b7
commit 6380109ce8
6 changed files with 65 additions and 17 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

View File

@ -262,7 +262,10 @@
.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
@ -281,7 +284,10 @@
.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

View File

@ -144,7 +144,10 @@
.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
@ -163,7 +166,10 @@
.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

View File

@ -165,7 +165,10 @@
.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
@ -184,7 +187,10 @@
.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

View File

@ -245,7 +245,10 @@
.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
@ -264,7 +267,10 @@
.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