Commit Graph

19 Commits (master)

Author SHA1 Message Date
Robin Hu b8b06c75a4 Made a fix to calcApproxTextWidth, to fix bug on IE9. 11 years ago
Robin Hu 0edc568ad0 Checking in a solution to making it possible to use
chart.options({}).  Instead of chaining properties,
you can pass chart properties in a hash.
Adding a optionsFunc template to utils.js, so it can reused in all chart
code.
11 years ago
Robin Hu ce180645d1 Merge branch 'master-patched' into development-patched
Conflicts:
	nv.d3.min.js
	src/models/multiBarChart.js
11 years ago
Robin Hu 5179633685 Merge branch 'master' of https://github.com/CentroNet-Marketing/nvd3 into master-patched 11 years ago
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.
11 years ago
Robin Hu 92df22993d Added calcApproxTextWidth util function. Fixed overlapping legend, as noted in issue #107. 11 years ago
Michael J. Cohen 5650e9cde9 Check if windowResize argument is undefined
When loading nv3d without creating a chart, ```nv.utils.windowResize``` is called somewhere with an undefined argument, so we should check if it is undefined and not try to replace the old event handler, otherwise every resize event generates an error because ```fun``` is undefined.

I was able to produce  by including the following libs and triggering onresize events.

```
nvd3/lib/d3.v2.js
nvd3/src/core.js
nvd3/src/tooltip.js
nvd3/src/utils.js
nvd3/src/models/lineWithFocusChart.js
nvd3/src/models/legend.js
nvd3/src/models/axis.js
nvd3/src/models/line.js
nvd3/src/models/scatter.js
```

Sponsored-by: CentroNet Marketing
11 years ago
Lee Gillentine a89a5ce29a Grammar police: fixing typos 11 years ago
Tyler Wolf b0c57c33f4 #26 12 years ago
Bob Monteverde a364ca0b9c Initial customTheme code for using consistant colors for series of the same key 12 years ago
Bob Monteverde 2f0d1cea9f getColor now gives default color if no argument is passed in 12 years ago
Bob Monteverde 134ad1d49d Fix cumulative line chart, color should have been set to default color 12 years ago
Bob Monteverde 685bb46454 Attempting to fix issue #143 12 years ago
Bob Monteverde 637815f4d8 Added nv.utils.pjax, while not a required function, its a convenient way of using d3 to do pjax in a VERY simple manor 12 years ago
Jyry Suvilehto 8957680322 added two utility functions for color 12 years ago
Bob Monteverde 525ecded4d Getting rid of charts collection, merging tooltips directly in complete charts, no need for separate charts collection 12 years ago
Bob Monteverde 803dfc6b38 Added nvd3 class to the parent wrap of all graphs, fixed some colors and css 12 years ago
Bob Monteverde 434c56ff30 updates to linePlusBar, and some fixes to historicalBar. Also moved nv.utils into utils.js 12 years ago
Nathanael Anderson 22225147ab Reworked library to remove jquery dependancies
renamed nvtooltip.js to tooltip.js and put it into the nv namespace
Added a batch file for building on windows.
12 years ago