From c686b7a14768461afbc47cec5ca53e4b4b5bb0b7 Mon Sep 17 00:00:00 2001 From: Robin Hu Date: Mon, 5 Aug 2013 22:05:25 -0400 Subject: [PATCH] Pie chart's .nv-label needs a pointer-events:none rule. This makes tooltips stable and not disappear when you mouse over a label. Issue #48 --- src/nv.d3.css | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/nv.d3.css b/src/nv.d3.css index 4deebc8..5bc2cce 100644 --- a/src/nv.d3.css +++ b/src/nv.d3.css @@ -311,7 +311,6 @@ svg .title { .nvd3.nv-pie path { stroke-opacity: 0; - transition: fill-opacity 250ms linear, stroke-width 250ms linear, stroke-opacity 250ms linear; -moz-transition: fill-opacity 250ms linear, stroke-width 250ms linear, stroke-opacity 250ms linear; -webkit-transition: fill-opacity 250ms linear, stroke-width 250ms linear, stroke-opacity 250ms linear; @@ -331,12 +330,10 @@ svg .title { .nvd3.nv-pie .hover path { fill-opacity: .7; -/* - stroke-width: 6px; - stroke-opacity: 1; -*/ } - +.nvd3.nv-pie .nv-label { + pointer-events: none; +} .nvd3.nv-pie .nv-label rect { fill-opacity: 0; stroke-opacity: 0;