mirror of https://github.com/vitalif/dimple
Fixed Issue #10 - Hidden Axis w/tooltip
parent
d1490a63b7
commit
6380109ce8
|
@ -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
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue