Robin Hu
ef96592694
Updating tooltip highlight so that the item will only highlight if the
...
mouse is really close to the chart point. Created a "nearestValueIndex"
function.
11 years ago
Robin Hu
0e116c6b56
Adding interactive Guideline layer double click dispatch event.
11 years ago
Robin Hu
c2cc7772d1
Added nv-legend-* class to legend text and circle icon.
...
Fixing some IE bugs related to the tooltip.
11 years ago
Robin Hu
f78caa70fa
Removing previousXCoordinate variable from interactiveLayer.js because it was not being referenced.
11 years ago
Robin Hu
9fbe68c8d8
Adding "use strict"; in all chart code.
...
Fixed any exceptions thrown when "use strict" was added.
11 years ago
Robin Hu
229cbd5121
Fixing tooltip flickering on IE.
...
Bumping development version # to 1.1.0b, as new significant features have been added.
Rebuilding nv.d3.js
11 years ago
Robin Hu
44ec8ab87a
Fixing issue in interactiveGuideline, where mouseOut dispatch
...
should be fired when the user mouses out of the <svg> container,
and into a non-svg element.
11 years ago
Robin Hu
7f71b66b0c
Overhauling the logic for creating an interactive layer.
...
Basically, the <svg> container will now process all mousemove
events. This allows stackedAreaChart and CumulativeLineChart to
maintain some other forms of interaction.
11 years ago
Robin Hu
e182e081bf
Major change to interactiveLayer.js. Instead of creating
...
a svg <rect> element to process mousemove events, we are
attaching the mousemove event to the bounding <svg> container.
This allows stackedAreaChart to maintain some previous interactivity.
11 years ago
Robin Hu
1621b83e7a
Cleaning up code in interactiveLayer -> mousemove, regarding
...
the IE 10 hack. It turns out that d3.event.offsetX/Y contains
the relative mouse coordinates needed. Using those instead.
11 years ago
Robin Hu
7bfc19b21f
Adding IE9+ fix so that mousing over a tooltip does not trigger
...
the elementMouseout dispatch. Without this, tooltips on IE are very buggy.
11 years ago
Robin Hu
d8ba26dc06
Cleaning up code for the MSIE svg.getScreenCTM issue.
...
REbuilding nv.d3.js
11 years ago
Robin Hu
c13be39c12
Added inline comments.
...
Changed style td.legend to td.legend-color-guide, becuase it conflicts with another .legend style being used elsewhere.
11 years ago
Robin Hu
1ff26f5fab
Optimizing interactive layer code, so d3.mouse(this) is called only once per mousemove.
11 years ago
Robin Hu
75ff9267c8
Finally resolving the nagging issue in IE where tooltips
...
were not showing up in the right place, due to issue with d3.mouse.
The solution is to take the svg.getBoundingClientRect(), and
taking 25% of it's top and left values.
11 years ago
Robin Hu
14117b32de
Fixing a NASTY Microsoft IE bug I found during cross browser testing.
...
Mousing over SVG.rect returns wrong X,Y coordinates, but only in IE.
11 years ago
Robin Hu
65edf27199
Fixed bug in nv.interactiveBisect, for situations where the xAccessor is
...
function(d,i) { return i}
11 years ago
Robin Hu
fa89918faf
Removed trailing commas in interactiveLayer code. Caused javascript error/warning.
11 years ago
Robin Hu
28d708d09d
Adding unit test on lineChartTest.html for when points are NaN, undefined,
...
etc.
Found a few edge cases where errors happen. Creating nv.utils.NaNtoZero()
function, to be used in places where points and lines are rendered.
Using NantoZero in scatter.js and interactiveGuideline.
11 years ago
Robin Hu
02da71c944
Added six more important line chart test cases. Changed tests to include
...
area charts.
11 years ago
Robin Hu
defaf765e8
Created nv.interactiveBisect utility function, and integrated it into the
...
interactiveGuideline logic. This function is used to find the x point
position given a mouseX location. It's a more robust solution. Made sure
chart tests passed.
11 years ago
Robin Hu
27d80457b9
Developed stronger backward compatibility with the old tooltip format. Old
...
tooltips work by default, but if you enable 'useInteractiveGuideline', the
new stuff will show.
11 years ago
Robin Hu
0b3ef24e0b
Added test page for lineChart. Continued work on making the interactive line layer.
11 years ago
Robin Hu
dbe826943f
Added interactiveLayer.js and integrated this utility into lineChart.js.
11 years ago