fskreuz
0331d2e650
Use style text-anchor to properly rotate ticks.
2013-07-22 23:44:51 +08:00
Tyler Wolf
e545d547de
update to tooltip positioning
2013-07-22 11:38:34 -04:00
Tyler Wolf
e918466d57
Merge branch 'development' of https://github.com/novus/nvd3 into development
...
Conflicts:
nv.d3.min.js
2013-07-22 10:46:13 -04:00
Tyler Wolf
e4b46f3c81
added case 'none' to tooltip code
2013-07-22 10:45:20 -04:00
Simon Kelly
0e6b742dab
use style text-anchor vs attribute to maintain consistency with d3: https://github.com/mbostock/d3/blob/master/src/svg/axis.js#L69
2013-07-18 11:40:45 +02:00
Robin Hu
3fc286a3aa
Adding try/catch block around getComputedtextLength.
...
Adding white-space:nowrap to nvtooltip.
2013-07-16 16:20:03 -04:00
Al Tenhundfeld
88fed7306d
Change bullet labels check to be more idiomatic JS.
2013-07-16 11:26:30 -04:00
Robin Hu
738a94f634
Increased tooltip transition speed.
2013-07-15 14:30:47 -04:00
Robin Hu
2725a44021
Adding with-3d-shadow style. This style class adds rounded corners and box shadow.
2013-07-15 14:13:14 -04:00
Robin Hu
c801cf2733
Putting back chart.container=this, in scatterChart.js.
...
A third party function we are using was referencing this property.
2013-07-15 13:44:24 -04:00
Al Tenhundfeld
3b7217b928
Add ability to provide custom labels to bullet chart.
2013-07-15 12:33:26 -04:00
Robin Hu
688518f7f1
Merge branch 'development' of https://github.com/novus/nvd3 into development
2013-07-15 08:55:43 -04:00
tubaxenor
b1a7d2211c
add brushExtent to chart to enable the ability to set default focus range.
...
There is a brushExtent when init, so I guess maybe you guys just forgot to put the public function available.
2013-07-15 15:26:37 +08:00
Robin Hu
9227616db2
Adding new test page for Scatter chart (and scatter plus line).
2013-07-13 20:58:47 -04:00
Robin Hu
5f5c298ec7
Fixing line chart with SVG resize tooltip issues.
2013-07-12 23:35:10 -04:00
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.
2013-07-12 23:24:12 -04:00
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.
2013-07-12 20:32:04 -04:00
Robin Hu
493160f13b
Rebuilding nv.d3.js
2013-07-12 18:13:55 -04:00
Robin Hu
3266bc369d
Fixing bug on cumulative line chart where point hover circles
...
were not disappearing after moving the index line.
This is due to commit 065c8eb84d
.
2013-07-12 18:10:54 -04:00
Robin Hu
7f24fe8d1f
Rebuilding nv.d3.js
2013-07-12 17:56:19 -04:00
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.
2013-07-12 17:55:31 -04:00
Robin Hu
0443d7c779
Removing some code I added in tooltip.js that clamped the svg bound top. Wasn't actually working.
2013-07-12 17:23:39 -04:00
Robin Hu
4b21903740
Adding unique ID to each tooltip in nv.models.tooltip.
2013-07-12 17:17:47 -04:00
Robin Hu
d8ba26dc06
Cleaning up code for the MSIE svg.getScreenCTM issue.
...
REbuilding nv.d3.js
2013-07-11 17:42:28 -04:00
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.
2013-07-10 23:01:49 -04:00
Robin Hu
8608819e0d
Cumulative line chart old tooltips working again.
...
Needed to modify pointer-events depending on whether
useInteractiveGuideline was set to true or false.
2013-07-10 22:31:36 -04:00
Robin Hu
729d57cda8
Rebuilding nv.d3.js
2013-07-10 12:24:19 -04:00
Robin Hu
678beb63ef
Fixing issue where the 'IndexLine' in cumulative line chart was not draggable.
...
Needed to move interactive layer to the bottom of the SVG layer stack, and change pointer-events to none
for things above it.
2013-07-10 12:23:12 -04:00
Robin Hu
e6ea912eb6
Merge branch 'development' of https://github.com/novus/nvd3 into development
...
Conflicts:
nv.d3.min.js
2013-07-10 09:20:26 -04:00
Areski Belaid
3cc8bec2c3
fix indent in example lineChart
2013-07-10 12:56:55 +02: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
874e068d9f
The code to create the interactive guideline is now placed after
...
the code that creates the legend.
This fixes an issue where the guideline would extend past
the X-axis, when the legend was more than two lines.
2013-07-09 17:20:20 -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