Commit Graph

803 Commits

Author SHA1 Message Date
Robin Hu
4e861eaba0 One of my projects is to overhaul the code for nv.models.legend.
Right now, we have duplicated code in all of our charts
for handling legendClick and legendDblClick. It turns out we
can handle this all in legend.js, and reduce the amount of
code in each chart model.

So far, I've converted lineChart.js to this new format.
2013-08-11 22:43:13 -04:00
Rusty Bailey
fa43a8388d Add xRange and yRange methods to compliment {x,y}Domain methods. 2013-08-11 19:33:24 -04:00
Robin Hu
561fb5afe1 Merge branch 'development' of https://github.com/adjohnson916/nvd3 into development-127
Conflicts:
	src/models/scatter.js
2013-08-11 18:07:55 -04:00
Robin Hu
0edd39bb1c For issue #171, making stackedAreaChart and scatterChart legends
fill full available width if the controls are hidden.
2013-08-09 17:59:02 -04:00
Robin Hu
b9a2d618cc historicalBar: Adding NaNtoZero check to bar height/y. 2013-08-09 16:38:45 -04:00
Robin Hu
718c7c9ee4 Adding nv-thin-line CSS class to make thinner lines. 2013-08-08 12:58:58 -04:00
Robin Hu
3dbdde795f For PR #209, adding test pieChart to pieChartTest.html.
Making 'key' the default label type if none specified.
2013-08-07 22:58:35 -04:00
Robin Hu
ce3de0d95c Merge branch 'rb/pie_labels' of https://github.com/rustybailey/nvd3 into development 2013-08-07 22:50:59 -04:00
Robin Hu
9b941caeda Merge branch 'master' into development
Conflicts:
	nv.d3.js
	nv.d3.min.js
	src/core.js
2013-08-07 22:50:43 -04:00
Rusty Bailey
e47e048410 Add a labelType method for pieCharts to give to option to use 'key', 'value', or 'percent' 2013-08-07 22:25:05 -04:00
Robin Hu
646c54bf62 Fixing issue in legend.js I found while investigating
issue #171.  Turns out it's possible for a divide by zero
error to happen.
2013-08-07 22:02:03 -04:00
Robin Hu
4bb3531197 Issue #131: fixing d="" error with lineWithFocusChart.
Need to add some defensive checks to make sure brush extent
is always greater than one.
2013-08-07 21:35:55 -04:00
Robin Hu
61ea02e264 Rebuilding nv.d3.js. Bumping version to 1.1.1b, due to stackedArea changes. 2013-08-07 12:57:28 -04:00
Robin Hu
19afd68f53 Adding transitionDuration option to stackedArea.
Adding transition to StackedAreaChart example.
2013-08-07 12:56:02 -04:00
Robin Hu
16f64b9821 Updating stackedArea.js to use d3 version 3 transition chaining syntax. 2013-08-07 12:44:59 -04:00
Robin Hu
d92428332c Merge branch 'stackedarea' of https://github.com/MikeRoetgers/nvd3 into development
Conflicts:
	src/models/stackedArea.js
2013-08-07 12:44:19 -04:00
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
2013-08-06 09:14:47 -04:00
Robin Hu
6dd18cdcee On IE, tooltips for cumulativeLineChart were flickering
when mouse moved over an avgLine. Making pointer-events:none
the default for avgLine and x/y-axis.
Removing foregroundPointerEvents variable; not needed anymore.
2013-08-06 08:52:20 -04:00
Mike Rötgers
6d99aee7b9 refs #153 : add transitions
* transitions active again when path enters or exits chart
2013-08-06 11:39:25 +02:00
Robin Hu
c686b7a147 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
2013-08-05 22:05:25 -04:00
Robin Hu
dc195e6e6e Fixing syntax error in historicalBar.js.
Rebuilding nv.d3.js
2013-08-05 13:21:34 -04:00
Robin Hu
3883010ca4 Fixing issue #206. The transitions in multiBar.js were not using the
proper d3 version3 transition chaining method.
2013-08-05 13:17:34 -04:00
Robin Hu
8a5ecbe037 Updating nvd3 programmatic version number to 1.0.0b
Rebuilding nv.d3.js. Updating README.md to remove note about 1.0.0b being in dev branch.
2013-08-05 11:41:05 -04:00
Robin Hu
dd718105c8 In historicalBar, changin d3.transition() to bars.transition(). 2013-08-05 09:39:05 -04:00
Robin Hu
01db0e9751 Merge branch 'development' of https://github.com/novus/nvd3 into development 2013-08-05 09:05:31 -04:00
Robin Hu
535993aa7c Adding real time bar chart test example. Updating historicalBar.js
to add a data key function for each bar <rect>.
Added transition to historicalBarChart.update, just like lineChart.
2013-08-04 21:39:02 -04:00
Robin Hu
2cf5b63c91 The whole concept of specifying a pie.values() function is
not consistent with other charts.  For all pie charts,
the developer needs to make sure to just pass in an array of key-value
pairs.  Nothing more.  The example of nvd3.org is not the proper way of
passing data into pie charts.

Removing pie.values() functionality and putting console error message.
Updated examples. For issue #98, #162, #106
2013-08-03 23:38:31 -04:00
Robin Hu
5af04cb857 Fixing NVD3 issue #98, 'Object #<Object> has no method 'map' on pieChart'.
Updating pieChart examples, so that [testData] becomes testData (no extra
array brackets needed).

Also adding pieChart test page.
2013-08-03 23:12:53 -04:00
Robin Hu
a552f5aa28 Added ability to double-click pie chart series
and have it be the only one selected.
2013-08-03 23:05:06 -04:00
Robin Hu
9c0eb46f4a Merge branch 'development' of https://github.com/Alric/nvd3 into development-bulletchart 2013-08-03 21:04:23 -04:00
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.
2013-08-02 15:25:37 -04:00
Robin Hu
799b06254c To make the interactive layer work on Chrome, need
to put a transparent <rect> behind every chart.
2013-07-25 17:17:14 -04:00
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.
2013-07-25 16:03:05 -04:00
Robin Hu
4abc8906a3 Merge branch 'development' of https://github.com/novus/nvd3 into development 2013-07-25 14:24:41 -04:00
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.
2013-07-25 14:23:51 -04:00
frank shao
058503a0be Merge branch 'development' of https://github.com/novus/nvd3 into development 2013-07-24 12:06:05 -04:00
frank shao
147168ca9b Lighten bullet shading 2013-07-24 12:05:46 -04:00
Tyler Wolf
c017c9443c udpated indented tree to have links instead of handling click events 2013-07-23 17:27:33 -04: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
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
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