Tyler Wolf
e4b46f3c81
added case 'none' to tooltip code
2013-07-22 10:45:20 -04:00
frank shao
c0a0c8b2f0
make
2013-07-09 18:11:14 -04:00
frank shao
69c42a52a4
Fixed update issue with scatterplusline
2013-07-09 18:10:13 -04:00
Robin Hu
5e5ba5c34b
Merge branch 'development' into nvd3-UI-134
...
Conflicts:
nv.d3.min.js
2013-07-09 11:06:44 -04:00
Robin Hu
4c3554db5d
Rebuilt nv.d3.js
2013-07-09 11:05:51 -04:00
Robin Hu
1a6b5dab13
Adding more inline comments to tooltip.js.
...
Removed an unused feature for bolding a row in the tooltip.
2013-07-08 22:05:48 -04:00
Robin Hu
3a75b583ca
Created more robust tooltip solution. Tooltips render inside the SVG's parent DIV.
...
They can be positioned, even if there are relative positioned elements above it.
2013-07-08 17:19:10 -04:00
Robin Hu
8dea03da44
Converted tooltip.js getTooltipContainer function to use d3.select.
...
Rebuilt nv.d3.js
2013-07-08 15:38:56 -04:00
Robin Hu
6e84a6845c
Tooltips are no longer rendered on document.body.
...
Instead, they are rendered inside the chart container.
Added some CSS styles to nvtooltip
2013-07-08 15:06:22 -04:00
Robin Hu
e1e9144e5f
Updating lineChartSVGResize example to use interactive guideline.
...
Rebuilding nv.d3.js.
2013-07-08 11:25:58 -04:00
Robin Hu
6c2f19a044
Updating CSS styling around table.td
2013-07-08 09:48:52 -04:00
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.
2013-07-08 09:36:29 -04:00
Robin Hu
1ff26f5fab
Optimizing interactive layer code, so d3.mouse(this) is called only once per mousemove.
2013-07-08 09:07:06 -04:00
Robin Hu
6ab5b447d4
Adding unit test page (very crude) for nv.interactiveBisect, since it is a
...
very important function.
2013-07-07 00:02:34 -04:00
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.
2013-07-06 23:32:28 -04:00
Robin Hu
792a36262d
Removed transitions from nv-point on hover.
2013-07-06 23:32:11 -04:00
Robin Hu
ca769e706d
Using svg.getBoundingClientRect() instead of elem.offsetLeft
...
when calculating tooltip position. Also replaced window.scollY with
pageYOffset. This is for Firefox and MSIE compatibility.
2013-07-06 17:12:19 -04:00
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.
2013-07-06 16:44:06 -04:00
Robin Hu
8b870e6b0a
Created function to get the first non-svg parent element in tooltip.js.
...
Needed because in Firefox and IE, SVG.offsetParent does not exist.
2013-07-06 15:28:05 -04:00
Robin Hu
4b8ad322cf
Updating algorithm for calculating the tooltip offset positioning.
2013-07-06 14:59:19 -04:00
Robin Hu
79b196cb41
Added simple navigation links between lineChart, StackedAreaChart and
...
CumulativeChart test examples.
2013-07-06 14:58:50 -04:00
Robin Hu
65edf27199
Fixed bug in nv.interactiveBisect, for situations where the xAccessor is
...
function(d,i) { return i}
2013-07-06 13:25:52 -04:00
Robin Hu
fa89918faf
Removed trailing commas in interactiveLayer code. Caused javascript error/warning.
2013-07-06 12:47:03 -04:00
Robin Hu
3c6d1b65ee
Added historicalBar.interactive. If set to false, tooltips/hoverovers don't work.
2013-07-06 11:25:29 -04:00
Robin Hu
81bf049daa
The .nvd3 .nv-bars rect:hover style was incorrect. it needs to be "rect.hover",
...
because we are applying the hover class when we mouse over a bar.
2013-07-06 11:16:26 -04:00
Robin Hu
8479f5fce1
Exposed 'highlightPoint' and 'clearHighlights' in historicalBar.
2013-07-06 11:12:19 -04:00
Robin Hu
817340cff5
Instead of using a dispatch for handling 'highlightPoint' and 'clearHighlights', I am making
...
those functions a direct method of nv.models.scatter. So you just say scatter.highlightPoint,
instead of scatter.dispatch.highlightPoint.
2013-07-06 11:05:23 -04:00
Robin Hu
b07d1f2a87
Added back the 'tooltips' boolean flag to lineChart.dispatch.tooltipShow.
...
REbuilt nv.d3.js and minified version.
2013-07-06 10:46:17 -04:00
Robin Hu
5f3e6d5691
Fixed merge conflicts when merging with origin/nvd3-UI-134
2013-07-06 10:33:54 -04:00
Robin Hu
1eb01d703d
Turning off Voronoi point path creation, if using the new interactive
...
guideline and tooltip.
Turns out, Voronoi is not needed in this new interactive mode!
2013-07-05 18:35:16 -04:00
Robin Hu
93a26c53c9
Fixing issue in scatterPlusLineChart where tooltips don't activate on
...
chart initial load.
2013-07-05 18:08:45 -04:00
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.
2013-07-05 16:14:48 -04:00
Robin Hu
9b3858e926
Created new general stylesheet for the nvd3 chart test pages.
...
Added test page for stacked area chart.
2013-07-05 15:32:47 -04:00
Robin Hu
cdb9ea83ab
Integrated interactive guideline into stacked area charts. Updated the
...
stacked area example.
2013-07-04 23:04:58 -04:00
Robin Hu
d974556d05
Cleaned up interactive guideline dispatch code.
...
Integrated interactive guideline into cumulativeLineChart and updated
example.
2013-07-04 22:18:02 -04:00
Robin Hu
575ed7950e
Fixed tooltip display edge case, where if the tooltip is very large, it
...
will render off window if too close to the bottom.
2013-07-04 21:27:58 -04:00
Robin Hu
02da71c944
Added six more important line chart test cases. Changed tests to include
...
area charts.
2013-07-04 17:45:42 -04:00
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.
2013-07-04 12:21:12 -04:00
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.
2013-07-03 23:17:08 -04:00
Tyler Wolf
f84a1bfaa9
fixed bug on previous push
2013-07-03 15:46:12 -04:00
Tyler Wolf
45e5efa82c
fixed discrete bar chart y bleeding on ydomain min >0
2013-07-03 15:33:34 -04:00
Robin Hu
0b3ef24e0b
Added test page for lineChart. Continued work on making the interactive line layer.
2013-07-03 13:43:32 -04:00
Robin Hu
dbe826943f
Added interactiveLayer.js and integrated this utility into lineChart.js.
2013-07-03 10:33:48 -04:00
Robin Hu
c079f3e122
Added 'ClearHighlights' dispatch to scatter.
...
Created preliminary implementation of mousemove event on lineChart.
2013-07-02 18:18:13 -04:00
Robin Hu
4038a56c7a
Added color legend square to the tooltip for each series.
2013-07-02 17:14:43 -04:00
Robin Hu
4cbd253c67
Added the 'highlightPoint' dispatch on nv.models.scatter. This dispatch lets the programmer highlight any point on any series.
...
Currently used in lineChart to highlight points.
2013-07-02 16:41:24 -04:00
Robin Hu
dc66846d46
Updated scatter.js so that when you mouseover a path-point, it will return all series information in the mouse event dispatch.
...
Updated nv.models.tooltip with more features.
Updated styling of the tooltip.
2013-07-02 16:07:20 -04:00
Robin Hu
79fb28f088
Updated nv.models.tooltip to have a custom HTML content generator. The default is to put tooltip inside a <table> tag.
2013-07-02 15:25:04 -04:00
Robin Hu
c02705fc18
Created nv.models.tooltip in tooltip.js.
...
This new model encapsulates most of the tooltip functionality.
2013-07-02 14:37:54 -04:00
Robin Hu
9122285ae5
Merge branch 'development' of https://github.com/novus/nvd3 into development
...
Conflicts:
nv.d3.min.js
2013-07-01 10:32:04 -04:00