Commit Graph

55 Commits (master)

Author SHA1 Message Date
Robin Hu ebd429e1e2 Adding opacity to the tooltip border-top/bottom highlight. 11 years ago
Robin Hu 1488afcc41 Rebuilding nv.d3.js. Updating nearestValueIndex function to use <= function when doing comparison 11 years ago
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 96840219ee Updating tooltip content generator to use d3 select instead of manually concating strings. 11 years ago
Robin Hu 8c43e72bbe Added feature where tooltips will highlight the row corresponding to the point your mouse is closest to. 11 years ago
Robin Hu 07899e2654 Updating tooltip.js to accept a "footer" element. 11 years ago
Robin Hu 3b83d8380a A bug on FireFox creates a situation where an <svg> element has a boundingRect.top of -180000 (or some really big number). Added some defensive code in tooltip.js to prevent the tooltip from being positioned at the very bottom. 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 c2b32f2909 Removing with-3d-shadow from tooltips by default. Need to add it manually back.
Updating .with-3d-shadow CSS rule to include nvtooltip.
Updated lineChart example.
11 years ago
Robin Hu 281f6cfbce Fixed bug in tooltip.js, for situations where parentContainer is undefined.
Added tooltip.js script to pieChartTest.html
11 years ago
Robin Hu 7133a13d85 Fixed conflicts in tooltip.js when merging with origin/development. 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 cdb7e3e271 Fixing bug where tooltips don't show up in right position
if the chart is inside a <div> with overflow:scroll
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
Tyler Wolf e545d547de update to tooltip positioning 11 years ago
Tyler Wolf e918466d57 Merge branch 'development' of https://github.com/novus/nvd3 into development
Conflicts:
	nv.d3.min.js
11 years ago
Tyler Wolf e4b46f3c81 added case 'none' to tooltip code 11 years ago
Robin Hu 2725a44021 Adding with-3d-shadow style. This style class adds rounded corners and box shadow. 11 years ago
Robin Hu 5f5c298ec7 Fixing line chart with SVG resize tooltip issues. 11 years ago
Robin Hu 94efcbad66 Brought back old tooltip transitions and box shadow...
but only if you supply the 'with-transitions' CSS class.

Also changed the nv-point.hover dot to a smaller, darker stroke.
11 years ago
Robin Hu 0443d7c779 Removing some code I added in tooltip.js that clamped the svg bound top. Wasn't actually working. 11 years ago
Robin Hu 4b21903740 Adding unique ID to each tooltip in nv.models.tooltip. 11 years ago
Robin Hu 410569110e Average lines on cumulative line chart had ability to go
off the <SVG> bounding rectangle. This caused issues on Firefox.
Changed code so that the average lines are 'clamped' within
the <SVG> bounding rect, and if they go off bounds, make them transparent.
11 years ago
Robin Hu 1a6b5dab13 Adding more inline comments to tooltip.js.
Removed an unused feature for bolding a row in the tooltip.
11 years ago
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.
11 years ago
Robin Hu 8dea03da44 Converted tooltip.js getTooltipContainer function to use d3.select.
Rebuilt nv.d3.js
11 years ago
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
11 years ago
Robin Hu e1e9144e5f Updating lineChartSVGResize example to use interactive guideline.
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 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.
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 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.
11 years ago
Robin Hu 4b8ad322cf Updating algorithm for calculating the tooltip offset positioning. 11 years ago
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.
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
Robin Hu 4038a56c7a Added color legend square to the tooltip for each series. 11 years ago
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.
11 years ago
Robin Hu 79fb28f088 Updated nv.models.tooltip to have a custom HTML content generator. The default is to put tooltip inside a <table> tag. 11 years ago
Robin Hu c02705fc18 Created nv.models.tooltip in tooltip.js.
This new model encapsulates most of the tooltip functionality.
11 years ago
Robin Hu ba44aa3053 Fixing issue #136. Improved logic in tooltip.js for handling <svg> and <g> tags. 11 years ago
Robin Hu d690c17a2b Fixed issue #25. Updated logic in tooltip.js, so that tooltips are not inserted into SVG containers. 11 years ago
Tyler Wolf b0c57c33f4 #26 12 years ago
Tyler Wolf 5a08ef2638 fixed Issue #321 12 years ago
Dingo 36a242846a tooltip fixes applied 12 years ago
Tyler Wolf a056949ca4 updated tooltip placement variable names 12 years ago
Tyler Wolf 7aff7d5077 fixed tooltip repositioning UI-24 12 years ago
Bob Monteverde 4ad3c2e6f3 Fixed issue #309 12 years ago
Bob Monteverde de73a5719a Added classes x-nvtooltip, y-nvtooltip, and xy-nvtooltip to the tooltips, also started working on the single data point issue with scatter and lien chart 12 years ago