Commit Graph

803 Commits (4e861eaba0949747fac728b3304eeba5b538fe30)

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.
11 years ago
Rusty Bailey fa43a8388d Add xRange and yRange methods to compliment {x,y}Domain methods. 11 years ago
Robin Hu 561fb5afe1 Merge branch 'development' of https://github.com/adjohnson916/nvd3 into development-127
Conflicts:
	src/models/scatter.js
11 years ago
Robin Hu 0edd39bb1c For issue #171, making stackedAreaChart and scatterChart legends
fill full available width if the controls are hidden.
11 years ago
Robin Hu b9a2d618cc historicalBar: Adding NaNtoZero check to bar height/y. 11 years ago
Robin Hu 718c7c9ee4 Adding nv-thin-line CSS class to make thinner lines. 11 years ago
Robin Hu 3dbdde795f For PR #209, adding test pieChart to pieChartTest.html.
Making 'key' the default label type if none specified.
11 years ago
Robin Hu ce3de0d95c Merge branch 'rb/pie_labels' of https://github.com/rustybailey/nvd3 into development 11 years ago
Robin Hu 9b941caeda Merge branch 'master' into development
Conflicts:
	nv.d3.js
	nv.d3.min.js
	src/core.js
11 years ago
Rusty Bailey e47e048410 Add a labelType method for pieCharts to give to option to use 'key', 'value', or 'percent' 11 years ago
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.
11 years ago
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.
11 years ago
Robin Hu 61ea02e264 Rebuilding nv.d3.js. Bumping version to 1.1.1b, due to stackedArea changes. 11 years ago
Robin Hu 19afd68f53 Adding transitionDuration option to stackedArea.
Adding transition to StackedAreaChart example.
11 years ago
Robin Hu 16f64b9821 Updating stackedArea.js to use d3 version 3 transition chaining syntax. 11 years ago
Robin Hu d92428332c Merge branch 'stackedarea' of https://github.com/MikeRoetgers/nvd3 into development
Conflicts:
	src/models/stackedArea.js
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 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.
11 years ago
Mike Rötgers 6d99aee7b9 refs #153 : add transitions
* transitions active again when path enters or exits chart
11 years ago
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
11 years ago
Robin Hu dc195e6e6e Fixing syntax error in historicalBar.js.
Rebuilding nv.d3.js
11 years ago
Robin Hu 3883010ca4 Fixing issue #206. The transitions in multiBar.js were not using the
proper d3 version3 transition chaining method.
11 years ago
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.
11 years ago
Robin Hu dd718105c8 In historicalBar, changin d3.transition() to bars.transition(). 11 years ago
Robin Hu 01db0e9751 Merge branch 'development' of https://github.com/novus/nvd3 into development 11 years ago
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.
11 years ago
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
11 years ago
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.
11 years ago
Robin Hu a552f5aa28 Added ability to double-click pie chart series
and have it be the only one selected.
11 years ago
Robin Hu 9c0eb46f4a Merge branch 'development' of https://github.com/Alric/nvd3 into development-bulletchart 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 799b06254c To make the interactive layer work on Chrome, need
to put a transparent <rect> behind every chart.
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 4abc8906a3 Merge branch 'development' of https://github.com/novus/nvd3 into development 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
frank shao 058503a0be Merge branch 'development' of https://github.com/novus/nvd3 into development 11 years ago
frank shao 147168ca9b Lighten bullet shading 11 years ago
Tyler Wolf c017c9443c udpated indented tree to have links instead of handling click events 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 3fc286a3aa Adding try/catch block around getComputedtextLength.
Adding white-space:nowrap to nvtooltip.
11 years ago
Al Tenhundfeld 88fed7306d Change bullet labels check to be more idiomatic JS. 11 years ago
Robin Hu 738a94f634 Increased tooltip transition speed. 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 c801cf2733 Putting back chart.container=this, in scatterChart.js.
A third party function we are using was referencing this property.
11 years ago
Al Tenhundfeld 3b7217b928 Add ability to provide custom labels to bullet chart. 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 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