Dan Vanderkam [Wed, 17 Jul 2013 14:52:02 +0000 (16:52 +0200)]
Merge branch 'master' of github.com:danvk/dygraphs
Dan Vanderkam [Wed, 17 Jul 2013 14:51:49 +0000 (16:51 +0200)]
lightweight dead code elimination
Robert Konigsberg [Tue, 16 Jul 2013 12:41:02 +0000 (08:41 -0400)]
Make seriesToPoints_ and stackPoints_ private. They are being rendered as part of JSDoc, which is wrong, but also, seriesToPoints_ has the closure substring "<?", which jsdoc likes to think is PHP.
Dan Vanderkam [Wed, 19 Jun 2013 19:14:27 +0000 (12:14 -0700)]
Merge pull request #262 from sauter-hq/left-boundry-fix
Left boundary fix
David Eberlein [Wed, 19 Jun 2013 08:10:24 +0000 (10:10 +0200)]
Fixed wrong space usage in if clauses.
eberldav [Thu, 13 Jun 2013 08:38:31 +0000 (10:38 +0200)]
BUGFIX: Fixed bug using the idxToRow_ function instead of directly taking the row from the point. Also the idxToRow_ method has been completely removed based on Dans comment, that it is unneeded.
eberldav [Thu, 13 Jun 2013 08:13:04 +0000 (10:13 +0200)]
TEST: Added test to verify that the left boundry works now.
David Eberlein [Wed, 12 Jun 2013 16:16:25 +0000 (18:16 +0200)]
BUGFIX: Added "this." to the boundryIds_ calls
David Eberlein [Wed, 12 Jun 2013 15:50:44 +0000 (17:50 +0200)]
BUGFIX: Fixed Bug created by extracting different rows for each series (to fix the big not connecting lines at edges). Now all calls to the getLeftBoundry method are done with the correct set index resulting in a correct behaviour now.
Robert Konigsberg [Tue, 11 Jun 2013 20:31:43 +0000 (16:31 -0400)]
Merge branch 'master' of https://github.com/danvk/dygraphs
Robert Konigsberg [Tue, 11 Jun 2013 20:29:42 +0000 (16:29 -0400)]
Add comment to resize test case as a follow on to pull request 260.
Robert Konigsberg [Tue, 11 Jun 2013 20:29:42 +0000 (16:29 -0400)]
Add comment to resize test case as a follow on to pull request 260.
Robert Konigsberg [Tue, 11 Jun 2013 20:24:58 +0000 (13:24 -0700)]
Merge pull request #260 from klausw-g/resize-fix-2
Only resize canvas if the size changed.
Klaus Weidner [Tue, 11 Jun 2013 20:18:58 +0000 (13:18 -0700)]
Only resize canvas if the size changed.
Resizing the canvas erases it, and Dygraphs had skipped the redraw
when it thought it wasn't necessary, leading to blank graphs after
a redundant .resize() call.
Dan Vanderkam [Tue, 11 Jun 2013 18:52:57 +0000 (11:52 -0700)]
Merge pull request #259 from klausw-g/resize-fix
Fix graphs created in not-displayed divs.
Klaus Weidner [Tue, 11 Jun 2013 18:38:12 +0000 (11:38 -0700)]
Fix graphs created in not-displayed divs.
This distinguishes two cases:
- graphs with explicit height/width in graph options. They should
be drawn correctly after display, no resize needed.
- graphs without explicit height/width are supposed to inherit
the size from the surrounding div. They needs a .resize()
call after display.
Tests are included for both.
Fixes issue 238.
Robert Konigsberg [Fri, 7 Jun 2013 00:38:44 +0000 (17:38 -0700)]
Merge pull request #258 from klausw-g/lint-fixes
Linter fixes.
Klaus Weidner [Thu, 6 Jun 2013 23:23:25 +0000 (16:23 -0700)]
Linter fixes.
Klaus Weidner [Thu, 6 Jun 2013 20:38:12 +0000 (16:38 -0400)]
Refactoring to fix stacked graphs with NaNs.
For stacked graphs, draw gaps for just the specific parts of series that are
missing data, and use interpolation to help ensure that the overall graph shape
doesn't get distorted for missing points.
This replaces #139 "Fix NaN handling for stacked graphs" which had
aggressively propagated NaNs to ensure that graphs don't get drawn with
incorrect stacking.
Fixes issue 446 - Improve handling of NaNs in stacked graphs.
Detailed changes:
* Remove layouts_.datasets, instead create point object arrays directly from
gatherDatasets_(). This was necessary since the pre-stacked datasets
aren't able to store the additional data needed for handling gaps.
* For stacked graphs, track yval_stacked/y_stacked separately from yval as point
properties.
* Remove unstackPointAtIndex which is now no longer necessary, since the points
keep the original yval. This helps ensure that the returned values keep their
original NaN value and don't expose the interpolated stacked values used for
drawing gaps.
* Remove evaluateWithError, evaluateLineCharts and Dygraph.seriesToPoints_ now
handle error bars directly.
* In gatherDatasets_, remove the unconditional copy of rolledSeries, the
refactoring appears to have fixed the bug related to zooming with
error bars on. (I could reproduce it in the original code by zooming
dygraphs/tests/custom-bars.html.) For date windows (horizontal zoom),
use .splice() instead of manually coping.
Squashed commit of the following:
commit
56efaef6a50c737b99a8e4e6a36e55c83fde237f
Author: Klaus Weidner <klausw@google.com>
Date: Mon Jun 3 16:50:16 2013 -0700
Style fixes as per Robert's requests.
commit
83bb38a071f407560abcca53b7f6e07d6b0ca0e5
Author: Klaus Weidner <klausw@google.com>
Date: Mon Jun 3 15:53:59 2013 -0700
Add stackedGraphNaNFill option to control NaN handling.
Add a test for this, and add a docstring to the stackPoints_ method.
commit
e16e3c381d5cc7bec9896b31dddebc627a941c33
Author: Klaus Weidner <klausw@google.com>
Date: Mon Jun 3 15:20:24 2013 -0700
Revert name back to .addDataset, add docstring.
commit
d3e66a60c84656364829e8a5bb83ed0e2b9fb403
Author: Klaus Weidner <klausw@google.com>
Date: Mon Jun 3 15:15:19 2013 -0700
Add more type annotations to make the flow of point data clearer.
Unfortunately it's still not very clear, the logic is a bit convoluted.
commit
33db3d27501c8b5f2f84baa4dd92bf8d6f0a35a3
Author: Klaus Weidner <klausw@google.com>
Date: Mon Jun 3 15:00:38 2013 -0700
Rename fixPathAttrs_ to cleanPathAttrs_ as requested.
commit
f39168785efcbacd1de9a6275aa02c8e34e4c5a7
Author: Klaus Weidner <klausw@google.com>
Date: Mon Jun 3 14:58:26 2013 -0700
Add comment explaining baseline, as requested by Robert.
commit
80348ed3c9e677fb5ff1ef393056e1e2bea1bbf7
Author: Klaus Weidner <klausw@google.com>
Date: Mon Jun 3 13:16:51 2013 -0700
Track stroke/fill in CanvasAssertions.
For lineTo operations, set strokeStyle to undefined if the path is
filled (not stroked), and set fillStyle to undefined if the path
is stroked only.
Fix assertions in missing_points tests, those were apparently expecting the
inflated numbers.
Remove the strokeStyle='#000000' hack in dygraph-canvas which is now
no longer needed.
commit
4f47af82ac297d27dc0ac9d5c6fd256e00cccec5
Author: Klaus Weidner <klausw@google.com>
Date: Mon Jun 3 11:57:56 2013 -0700
fix CanvasAssertions which was calling .match wrong, remove now-redundant check.
commit
8c53e9e0f3d362e58204ff5a777c90ddb3b589d5
Author: Klaus Weidner <klausw@google.com>
Date: Thu May 23 11:00:50 2013 -0700
Restore hasOwnProperty.
commit
621cc37cfaf33821d04de2a94aea63021f7a9647
Author: Klaus Weidner <klausw@google.com>
Date: Wed May 22 15:35:16 2013 -0700
Fix all-NaN series stacking and Proxy return values.
Ensure that all-NaN series get treated as zero for stacking
purposes, and that nextPoint gets set to null past the last
stackable point. We want interpolation, but not extrapolation.
The Proxy class didn't return values from calls, breaking
testCorrectColors since it didn't get pixel data as expected.
Update the input data for testInterpolation to check corner cases,
including an all-NaN series.
commit
eb52ff1c1bbdd55312cb2881b5182731c91c155c
Author: Klaus Weidner <klausw@google.com>
Date: Wed May 22 12:40:44 2013 -0700
Refactoring to fix stacked graphs with NaNs.
For stacked graphs, draw gaps for just the specific parts of series that are
missing data, and use interpolation to help ensure that the overall graph shape
doesn't get distorted for missing points.
This replaces https://github.com/danvk/dygraphs/pull/139 "Fix NaN handling for
stacked graphs" which had aggressively propagated NaNs to ensure that graphs
don't get drawn with incorrect stacking.
Fixes issue 446 - Improve handling of NaNs in stacked graphs.
Detailed changes:
- Remove layouts_.datasets, instead create point object arrays directly from
gatherDatasets_(). This was necessary since the pre-stacked datasets aren't
able to store the additional data needed for handling gaps.
- For stacked graphs, track yval_stacked/y_stacked separately from yval as point
properties.
- Remove unstackPointAtIndex which is now no longer necessary, since the points
keep the original yval. This helps ensure that the returned values keep their
original NaN value and don't expose the interpolated stacked values used for
drawing gaps.
- Remove evaluateWithError, evaluateLineCharts and Dygraph.seriesToPoints_ now
handle error bars directly.
- In gatherDatasets_, remove the unconditional copy of rolledSeries, the
refactoring appears to have fixed the bug related to zooming with
error bars on. (I could reproduce it in the original code by zooming
dygraphs/tests/custom-bars.html.) For date windows (horizontal zoom),
use .splice() instead of manually coping.
Robert Konigsberg [Thu, 6 Jun 2013 11:28:16 +0000 (04:28 -0700)]
Merge pull request #257 from kberg/auto-tests
Auto tests cleanup and enhancements
Robert Konigsberg [Thu, 6 Jun 2013 11:27:07 +0000 (07:27 -0400)]
Merge branch 'master' of https://github.com/danvk/dygraphs into auto-tests
Robert Konigsberg [Thu, 6 Jun 2013 02:11:44 +0000 (19:11 -0700)]
Merge pull request #250 from wimme/patch-4
LogScale and customBars with negative values
Robert Konigsberg [Wed, 5 Jun 2013 21:02:30 +0000 (17:02 -0400)]
Clean up more of the local testing script, and also make it prettier. Add execution time to header.
Robert Konigsberg [Tue, 4 Jun 2013 21:38:25 +0000 (17:38 -0400)]
Reduce the width of testGridLinePattern from 480px to 120px, making the test run in 150ms instead of ~8000ms.
Robert Konigsberg [Tue, 4 Jun 2013 21:24:39 +0000 (17:24 -0400)]
Merge branch 'master' of https://github.com/danvk/dygraphs
Robert Konigsberg [Mon, 3 Jun 2013 20:41:21 +0000 (13:41 -0700)]
Merge pull request #256 from kberg/auto-tests
I broke test.sh. This fixes it.
Robert Konigsberg [Mon, 3 Jun 2013 20:40:36 +0000 (16:40 -0400)]
Merge branch 'auto-tests' of https://github.com/kberg/dygraphs into auto-tests
Robert Konigsberg [Mon, 3 Jun 2013 20:37:17 +0000 (16:37 -0400)]
I broke ./test.sh, and this fixes it.
Robert Konigsberg [Mon, 3 Jun 2013 20:37:17 +0000 (16:37 -0400)]
I broke ./test.sh, and this fixes it.
Robert Konigsberg [Mon, 3 Jun 2013 19:41:05 +0000 (12:41 -0700)]
Merge pull request #255 from kberg/master
Add --verbose flag to test.sh and phantom-driver.js which gathers all output from the web page under test.
Robert Konigsberg [Mon, 3 Jun 2013 19:40:03 +0000 (15:40 -0400)]
Merge branch 'master' of https://github.com/danvk/dygraphs
Robert Konigsberg [Mon, 3 Jun 2013 19:39:11 +0000 (15:39 -0400)]
Add --verbose to ./test.sh and phantom-driver.js
Robert Konigsberg [Mon, 3 Jun 2013 19:17:28 +0000 (12:17 -0700)]
Merge pull request #254 from kberg/i382
Fix lint errors for i382. Also, ugh, clearly broken bit with mouseUpHandler.
Robert Konigsberg [Mon, 3 Jun 2013 19:15:24 +0000 (15:15 -0400)]
Fix lint errors for i382. Also, ugh, clearly broken bit with mouseUpHandler.
Robert Konigsberg [Mon, 3 Jun 2013 14:16:05 +0000 (07:16 -0700)]
Merge pull request #232 from kberg/i382
Fix bug 382. Simplify resizing by not recreating everything from scratch...
Robert Konigsberg [Mon, 3 Jun 2013 14:15:14 +0000 (10:15 -0400)]
Merge branch 'i382' of https://github.com/kberg/dygraphs into i382
Robert Konigsberg [Mon, 3 Jun 2013 14:14:08 +0000 (10:14 -0400)]
Fix tests that accompany fixing bug 382.
Robert Konigsberg [Mon, 3 Jun 2013 14:06:22 +0000 (10:06 -0400)]
Merge branch 'master' of https://github.com/danvk/dygraphs into i382
Robert Konigsberg [Mon, 3 Jun 2013 14:05:59 +0000 (07:05 -0700)]
Merge pull request #252 from kberg/auto-tests
Add nice little things to the in-browser test runner.
Robert Konigsberg [Mon, 3 Jun 2013 14:04:05 +0000 (10:04 -0400)]
Merge branch 'master' of https://github.com/danvk/dygraphs into i382
Robert Konigsberg [Mon, 3 Jun 2013 05:57:42 +0000 (01:57 -0400)]
Add nice little things to the in-browser test runner.
1. Add meta-links to the test name and new "more..." links.
2. Test name link runs that single test. more... shows the stack trace in an alert window. (Not ideal, but it's something.)
Dan Vanderkam [Mon, 3 Jun 2013 01:26:51 +0000 (18:26 -0700)]
Merge pull request #251 from kberg/auto-tests
Nicer auto tests
Robert Konigsberg [Sun, 2 Jun 2013 23:09:48 +0000 (19:09 -0400)]
Make a table view out of the test results for easier reading.
Robert Konigsberg [Sun, 2 Jun 2013 22:38:51 +0000 (18:38 -0400)]
Rewrite local testdriver processing. Using a listener framework to report test results, and also, store test execution durations.
Robert Konigsberg [Sun, 2 Jun 2013 15:57:24 +0000 (11:57 -0400)]
Turn auto-tests script into an object for saner manipulation.
Robert Konigsberg [Sun, 2 Jun 2013 15:43:08 +0000 (11:43 -0400)]
The local auto tester's javascript is messy and having it embedded in HTML doesn't help, so this change moves it out into its own file.
Wim Bruynooghe [Fri, 31 May 2013 14:03:40 +0000 (17:03 +0300)]
Update dygraph.js
Wim Bruynooghe [Fri, 31 May 2013 13:50:37 +0000 (16:50 +0300)]
Update dygraph.js
Wim Bruynooghe [Fri, 31 May 2013 13:48:46 +0000 (16:48 +0300)]
Add comment
Wim Bruynooghe [Fri, 31 May 2013 11:27:11 +0000 (13:27 +0200)]
Add test for custom bars with negative values in logScale
Wim Bruynooghe [Fri, 31 May 2013 11:22:44 +0000 (13:22 +0200)]
LogScale and customBars with negative values
When LogScale and customBars are enabled, it was verifying if the value was negative by using a <= on an array and then inserting a null. This caused exceptions in rollingAverage(), the value can't be null when using customBars.
(This a new patch based on the current code, since pull request #236 was getting old).
Robert Konigsberg [Thu, 30 May 2013 16:58:40 +0000 (12:58 -0400)]
Remove the vestigial DygraphLayout.setDateWindow.
(Also, add a clarifying comment.)
Dan Vanderkam [Wed, 8 May 2013 23:13:05 +0000 (16:13 -0700)]
Merge branch 'master' of github.com:danvk/dygraphs
Dan Vanderkam [Wed, 8 May 2013 23:12:48 +0000 (16:12 -0700)]
Fix failing test
Dan Vanderkam [Wed, 8 May 2013 23:09:31 +0000 (16:09 -0700)]
Merge pull request #241 from sauter-hq/per-axis-grid
per-axis grid options
David Eberlein [Wed, 8 May 2013 06:42:37 +0000 (08:42 +0200)]
Merge remote-tracking branch 'official/master' into per-axis-grid
Conflicts:
tests/two-axes.html
Dan Vanderkam [Fri, 3 May 2013 16:32:41 +0000 (09:32 -0700)]
Merge pull request #243 from sauter-hq/fix-for-issue-451
Fix for issue 451
David Eberlein [Fri, 3 May 2013 07:05:11 +0000 (09:05 +0200)]
REFACTORING: fixed code style and lint warnings. Readded jsdoc lost in merge.
David Eberlein [Thu, 2 May 2013 09:51:55 +0000 (11:51 +0200)]
REFACTORING: Fixed code style nits and extracted the null values check to a method.
David Eberlein [Thu, 2 May 2013 08:50:24 +0000 (10:50 +0200)]
Merge commit '
9f890c23ad80924d0a30f3a14f8680b7c2d6318e' into fix-for-issue-451
Conflicts:
dygraph-layout.js
Dan Vanderkam [Tue, 30 Apr 2013 16:09:11 +0000 (12:09 -0400)]
only reserve space for y2 axis when it will be drawn
David Eberlein [Thu, 25 Apr 2013 07:11:49 +0000 (09:11 +0200)]
REFACTORING: cleaned up code and style for new grid per axis feature.
David Eberlein [Thu, 25 Apr 2013 06:48:54 +0000 (08:48 +0200)]
Dan Vanderkam [Wed, 24 Apr 2013 17:53:21 +0000 (13:53 -0400)]
Fix our lone lint error
Dan Vanderkam [Wed, 24 Apr 2013 17:40:12 +0000 (13:40 -0400)]
Fix syntax errors in docs and update test script to check for them.
Dan Vanderkam [Wed, 24 Apr 2013 16:24:16 +0000 (12:24 -0400)]
Stack Overflow link on home page
Dan Vanderkam [Wed, 24 Apr 2013 16:16:38 +0000 (09:16 -0700)]
Merge pull request #246 from davidmsibley/master
Quarterly granularity ticker fix
Dan Vanderkam [Thu, 18 Apr 2013 16:28:36 +0000 (09:28 -0700)]
Merge pull request #245 from sauter-hq/custom-bar-data-gaps-459
Custom bar data gaps 459
Robert Konigsberg [Thu, 18 Apr 2013 15:35:59 +0000 (08:35 -0700)]
Merge pull request #237 from kberg/closure
Fix closure bugs in Dygraphs
Robert Konigsberg [Thu, 18 Apr 2013 15:34:18 +0000 (11:34 -0400)]
Follow-on to pull request 237, closurifying some code.
David Eberlein [Thu, 18 Apr 2013 08:23:31 +0000 (10:23 +0200)]
BUGFIX: Fixed test not running die to OS differences. Now the edge pixels arn't checked anymore which works fine on linux and windows.
David Eberlein [Thu, 18 Apr 2013 07:52:22 +0000 (09:52 +0200)]
TEST: Added NaN cases to the missingPoints test.
David Eberlein [Thu, 18 Apr 2013 07:51:33 +0000 (09:51 +0200)]
REFACTORING: Changed if / else cases to optimize the performance for the
default cases.
David M Sibley [Wed, 17 Apr 2013 23:10:44 +0000 (18:10 -0500)]
adding comments for LONG_TICK_PLACEMENTS
David M Sibley [Wed, 17 Apr 2013 22:36:21 +0000 (17:36 -0500)]
Merge branch 'master' of github.com:danvk/dygraphs
Dan Vanderkam [Wed, 17 Apr 2013 21:52:58 +0000 (14:52 -0700)]
Merge pull request #242 from sauter-hq/draw-xaxis-bugfix
BUGFIX: RangeSelector: xAxisLabelHeight is set to 0 in case the option 'drawXAxis' is set to false.
David M Sibley [Wed, 17 Apr 2013 21:44:20 +0000 (16:44 -0500)]
tying all the large granularity tick decision making together
David M Sibley [Wed, 17 Apr 2013 17:18:41 +0000 (12:18 -0500)]
corrected number of months in a QUARTERLY granularity
David Eberlein [Tue, 16 Apr 2013 16:20:16 +0000 (18:20 +0200)]
TEST: Added automatet tests for customBar and errorBar options and missing data points.
David Eberlein [Tue, 16 Apr 2013 16:18:32 +0000 (18:18 +0200)]
BUGFIX: added missing spaces.
Robert Konigsberg [Tue, 16 Apr 2013 14:26:50 +0000 (10:26 -0400)]
Reponses to code review for https://github.com/danvk/dygraphs/pull/237
Robert Konigsberg [Tue, 16 Apr 2013 14:15:18 +0000 (10:15 -0400)]
Merge branch 'master' of github.com:danvk/dygraphs into closure
Conflicts:
dygraph-options.js
David Eberlein [Tue, 16 Apr 2013 07:07:04 +0000 (09:07 +0200)]
BUGFIX: Fixed typo
David Eberlein [Mon, 15 Apr 2013 14:15:04 +0000 (16:15 +0200)]
TEST: testGridLinePattern: Fixed bug not correctly resetting the x-value
in each loop
David Eberlein [Mon, 15 Apr 2013 14:01:42 +0000 (16:01 +0200)]
Merge branch 'per-axis-grid' of https://github.com/sauter-hq/dygraphs into per-axis-grid
David Eberlein [Mon, 15 Apr 2013 14:00:42 +0000 (16:00 +0200)]
REFACTORING: Fixed wrong indents, missing spaces and too much spaces :-)
David Eberlein [Mon, 15 Apr 2013 13:52:44 +0000 (15:52 +0200)]
BUGFIX: Fixed jittering test results by ignoring the alpha value in the color checks.
eichsjul [Mon, 15 Apr 2013 12:57:07 +0000 (14:57 +0200)]
REFACTORING: fixed jslint violation
eichsjul [Mon, 15 Apr 2013 12:39:33 +0000 (14:39 +0200)]
REFACTORING: adapted EOL
eichsjul [Mon, 15 Apr 2013 12:36:09 +0000 (14:36 +0200)]
EXAMPLE: added new example for fixed bug
eichsjul [Mon, 15 Apr 2013 11:26:00 +0000 (13:26 +0200)]
FEATURE: extended test for the bugfix for issue #451
eichsjul [Mon, 15 Apr 2013 11:25:10 +0000 (13:25 +0200)]
BUGFIX: bugfix for issue #451 is now also working for bars
David Eberlein [Mon, 15 Apr 2013 08:39:34 +0000 (10:39 +0200)]
TEST: Added examples for the bugfix.
David Eberlein [Mon, 15 Apr 2013 08:37:10 +0000 (10:37 +0200)]
REFACTORING: moved option retrieving out of the for loop for better
performance.
David Eberlein [Fri, 12 Apr 2013 14:15:06 +0000 (16:15 +0200)]
TEST: test to verify the bugfix
David Eberlein [Fri, 12 Apr 2013 14:12:16 +0000 (16:12 +0200)]
BUGFIX: First try of fixing missing data bug for customBars and errorBars
David Eberlein [Fri, 12 Apr 2013 12:51:37 +0000 (14:51 +0200)]
TEST: Added example of range selector without the chart.
David Eberlein [Fri, 12 Apr 2013 12:51:16 +0000 (14:51 +0200)]
TEST: Added automated test proving the bugfix made.
eichsjul [Fri, 12 Apr 2013 09:35:32 +0000 (11:35 +0200)]
REFACTORING: use the method "getLeftBoundary" instead of a private
variable
Damien Buhl (alias daminetreg) [Fri, 12 Apr 2013 08:10:16 +0000 (10:10 +0200)]
BUG FIX: Changed check to undefined with === as proposed by jslint.