Dan Vanderkam [Tue, 23 Jul 2013 03:19:24 +0000 (23:19 -0400)]
can draw and interact!
Dan Vanderkam [Tue, 23 Jul 2013 01:43:15 +0000 (21:43 -0400)]
making progress on a usable dygraph-combined.js; the great quoting begins
Dan Vanderkam [Tue, 23 Jul 2013 00:24:42 +0000 (20:24 -0400)]
file size experiments; possible 36% savings
Dan Vanderkam [Tue, 23 Jul 2013 00:10:31 +0000 (20:10 -0400)]
start using export symbols
Dan Vanderkam [Tue, 23 Jul 2013 00:09:47 +0000 (20:09 -0400)]
really add gviz-api
Dan Vanderkam [Mon, 22 Jul 2013 23:44:47 +0000 (19:44 -0400)]
99 warnings, all in dygraph.js
Dan Vanderkam [Mon, 22 Jul 2013 23:36:28 +0000 (19:36 -0400)]
add gviz-api externs; 99 warnings
Dan Vanderkam [Mon, 22 Jul 2013 23:32:11 +0000 (19:32 -0400)]
114 warnings
Dan Vanderkam [Mon, 22 Jul 2013 23:29:25 +0000 (19:29 -0400)]
a mere 130 warnings
Dan Vanderkam [Mon, 22 Jul 2013 23:16:51 +0000 (19:16 -0400)]
228 warnings in dygraph.js
Dan Vanderkam [Mon, 22 Jul 2013 22:12:53 +0000 (18:12 -0400)]
1 error, 172 warnings on dygraph.js
Dan Vanderkam [Mon, 22 Jul 2013 21:57:21 +0000 (17:57 -0400)]
update command
Dan Vanderkam [Mon, 22 Jul 2013 21:55:52 +0000 (17:55 -0400)]
closurize dygraph-interaction-model.js
Dan Vanderkam [Mon, 22 Jul 2013 20:59:34 +0000 (16:59 -0400)]
stricter types
Dan Vanderkam [Mon, 22 Jul 2013 20:58:52 +0000 (16:58 -0400)]
basic closurization of dygraph-canvas.js
Dan Vanderkam [Mon, 22 Jul 2013 20:37:52 +0000 (16:37 -0400)]
Merge branch 'shrink' into full-closure
Dan Vanderkam [Mon, 22 Jul 2013 20:37:40 +0000 (16:37 -0400)]
Merge branch 'master' into full-closure
Dan Vanderkam [Mon, 22 Jul 2013 20:31:34 +0000 (16:31 -0400)]
remove private method from test
Dan Vanderkam [Mon, 22 Jul 2013 02:12:01 +0000 (22:12 -0400)]
closurize dygraph-layout.js
Dan Vanderkam [Sun, 21 Jul 2013 17:20:48 +0000 (13:20 -0400)]
rv combined
Dan Vanderkam [Sun, 21 Jul 2013 17:08:40 +0000 (13:08 -0400)]
kberg review
Dan Vanderkam [Sun, 21 Jul 2013 15:41:27 +0000 (11:41 -0400)]
export fewer symbols from dygraph.js
Dan Vanderkam [Sun, 21 Jul 2013 15:19:30 +0000 (11:19 -0400)]
notes
Dan Vanderkam [Sun, 21 Jul 2013 15:18:18 +0000 (11:18 -0400)]
notes
Dan Vanderkam [Sun, 21 Jul 2013 15:17:17 +0000 (11:17 -0400)]
test to track exported symbols in dygraph-combined.js
Dan Vanderkam [Sun, 21 Jul 2013 15:15:38 +0000 (11:15 -0400)]
update notes
Dan Vanderkam [Sun, 21 Jul 2013 15:14:36 +0000 (11:14 -0400)]
stop exporting _calcYNormal
Dan Vanderkam [Sun, 21 Jul 2013 15:13:01 +0000 (11:13 -0400)]
consolidate parseFloat_ (!)
Dan Vanderkam [Sun, 21 Jul 2013 15:06:03 +0000 (11:06 -0400)]
export fewer symbols from DygraphCanvasRenderer
Dan Vanderkam [Sun, 21 Jul 2013 14:23:03 +0000 (10:23 -0400)]
export fewer methods
Dan Vanderkam [Sun, 21 Jul 2013 14:15:35 +0000 (10:15 -0400)]
consolidate to static logging functions; hide more symbols
Dan Vanderkam [Sun, 21 Jul 2013 12:54:16 +0000 (08:54 -0400)]
Some cleanup of symbols that should not be exported
Dan Vanderkam [Sun, 21 Jul 2013 12:25:54 +0000 (08:25 -0400)]
silence compressor warnings
Dan Vanderkam [Sun, 21 Jul 2013 11:39:56 +0000 (07:39 -0400)]
switch to uglifyjs for minification; another ~5k savings
Dan Vanderkam [Fri, 19 Jul 2013 17:47:45 +0000 (19:47 +0200)]
consolidate date processing a bit
Dan Vanderkam [Fri, 19 Jul 2013 17:44:14 +0000 (19:44 +0200)]
update notes
Dan Vanderkam [Fri, 19 Jul 2013 17:43:50 +0000 (19:43 +0200)]
Move custom circles into extras/, save some space
Dan Vanderkam [Fri, 19 Jul 2013 17:09:33 +0000 (19:09 +0200)]
Consolidate findPos{X,Y} -> findPos
Dan Vanderkam [Thu, 18 Jul 2013 21:08:00 +0000 (23:08 +0200)]
auto_tests/misc/local works in FF again (which has no innerText, only innerHTML)
Dan Vanderkam [Thu, 18 Jul 2013 20:59:21 +0000 (22:59 +0200)]
test for Dygraph.toRGB_
Dan Vanderkam [Thu, 18 Jul 2013 20:55:00 +0000 (22:55 +0200)]
remove dependence on rgbcolor; unclear if this works in IE
Dan Vanderkam [Thu, 18 Jul 2013 20:31:53 +0000 (22:31 +0200)]
update notes
Dan Vanderkam [Thu, 18 Jul 2013 20:01:50 +0000 (22:01 +0200)]
remove strftime-min.js
Dan Vanderkam [Thu, 18 Jul 2013 19:49:19 +0000 (21:49 +0200)]
remove some dead code
Dan Vanderkam [Thu, 18 Jul 2013 19:42:34 +0000 (21:42 +0200)]
strip supporting code for stacktrace from combined
Dan Vanderkam [Thu, 18 Jul 2013 19:40:17 +0000 (21:40 +0200)]
remove stacktrace.js from combined
Dan Vanderkam [Thu, 18 Jul 2013 19:36:46 +0000 (21:36 +0200)]
track size reducing ideas
Dan Vanderkam [Thu, 18 Jul 2013 19:36:38 +0000 (21:36 +0200)]
CatCompressed -> CatMinified in generate-combined.sh
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.)