Dan Vanderkam [Thu, 19 Apr 2012 21:09:14 +0000 (14:09 -0700)]
Merge pull request #145 from dpwatrous/master
Stacked step plot fix
David Watrous [Wed, 18 Apr 2012 16:55:58 +0000 (12:55 -0400)]
Fixed Issue 206: stepPlot is not considered for stacked filling
Robert Konigsberg [Wed, 18 Apr 2012 16:48:26 +0000 (12:48 -0400)]
Tweak the addEvent/removeEvent code. Restore the non-object methods, and add a second one just for managing the events associated with a graph.
Dan Vanderkam [Wed, 18 Apr 2012 15:21:47 +0000 (08:21 -0700)]
Merge pull request #143 from klausw-g/plugin-tweaks
Plugin tweaks
Robert Konigsberg [Tue, 17 Apr 2012 18:56:48 +0000 (14:56 -0400)]
Tracking all event registrations, and deallocating them en masse makes
destroy() retain much less memory. e.g. in a simple case creating and
destoying the canonical demo, retains 10K less data upon destroy.
Robert Konigsberg [Wed, 11 Apr 2012 15:30:51 +0000 (11:30 -0400)]
More fixes for code.google.com/p/dygraphs/issues/detail?id=312
Robert Konigsberg [Wed, 11 Apr 2012 15:25:29 +0000 (11:25 -0400)]
Filter out the query directory from docs. Fixes code.google.com/p/dygraphs/issues/detail?id=312
Klaus Weidner [Tue, 10 Apr 2012 23:08:32 +0000 (16:08 -0700)]
re-add 'validate eventName' TODO.
Klaus Weidner [Tue, 10 Apr 2012 23:01:55 +0000 (16:01 -0700)]
Update plugin registry
- use legend.prototype consistently for method calls, remove .call() hack
- replace the registerer with returning an event map object
Dan Vanderkam [Tue, 10 Apr 2012 22:50:18 +0000 (18:50 -0400)]
Fix small regression in behavior on plugin CSS (issue 315)
Klaus Weidner [Tue, 10 Apr 2012 22:49:46 +0000 (15:49 -0700)]
Avoid calling length on undefined if no event handlers are registered.
Dan Vanderkam [Tue, 10 Apr 2012 22:40:26 +0000 (18:40 -0400)]
fix regression on issue 152
Dan Vanderkam [Tue, 10 Apr 2012 22:38:00 +0000 (18:38 -0400)]
klaus comments on plugins
Dan Vanderkam [Tue, 10 Apr 2012 22:08:30 +0000 (18:08 -0400)]
Fix most warnings in tests; add support for loading (non-auto) tests to phantom-driver.js, but do not enable.
Dan Vanderkam [Sat, 7 Apr 2012 17:07:19 +0000 (13:07 -0400)]
Copy new plugins dir to dygraphs.com
Dan Vanderkam [Fri, 6 Apr 2012 21:53:05 +0000 (17:53 -0400)]
Introduce a plugin system and move the legend to it.
This is still pretty rudimentary, but I wanted to get something into the
mainline to start getting some real experience with it.
This does a few things:
1. Introduces a way to register plugins.
2. Adds some standard methods (e.g. "activate", "destroy").
3. Allows plugins to register "event listeners" and adds a few hooks.
4. Adds a few new public APIs that were valuable.
This is still a work in progress -- plugins/legend.js still uses two private
APIs -- but I'm generally really upbeat about this refactor. It was great to
see how much even this simple exercise forced the legend code to get simpler
and use public APIs.
Squashed commit of the following:
commit
bb250bdb928076c763b83d7ad5a60d15b9187510
Author: Dan Vanderkam <dan@dygraphs.com>
Date: Fri Apr 6 17:50:28 2012 -0400
clean a few things up, add plugins/README
commit
54328995c79a0091e56d4eda655edbd40e3379e6
Author: Dan Vanderkam <dan@dygraphs.com>
Date: Fri Apr 6 17:22:03 2012 -0400
self code review
commit
d49379470fbe26388bdf46d45aeb5e5cdbc4004d
Author: Dan Vanderkam <dan@dygraphs.com>
Date: Fri Apr 6 17:01:46 2012 -0400
clean up comments
commit
50b731d0559c490771112afc2f0c6c5b50bbeb26
Author: Dan Vanderkam <dan@dygraphs.com>
Date: Fri Apr 6 16:52:10 2012 -0400
use public API for highlightSet_
commit
848c0ca24f2302db206e6cf8d2f512432c251813
Author: Dan Vanderkam <dan@dygraphs.com>
Date: Fri Apr 6 16:44:54 2012 -0400
factor out generateLegendDashHTML, too
commit
4f54b5061cea5845d7d2ca38f09ec1bb3578015b
Author: Dan Vanderkam <dan@dygraphs.com>
Date: Fri Apr 6 16:37:13 2012 -0400
migrate generateLegendHTML out of dygraph.js; only using one private API
commit
060650eeb7007cc32906f1edc62ccfc1ef5b1b54
Author: Dan Vanderkam <dan@dygraphs.com>
Date: Fri Apr 6 15:52:24 2012 -0400
misc cleanup
commit
ce592df0224fe9953848a074582093a113358c9f
Merge: f05983c 29cb484
Author: Dan Vanderkam <dan@dygraphs.com>
Date: Fri Apr 6 15:35:58 2012 -0400
Merge branch 'master' into plugin-legend
commit
f05983cdf6f0f2ae4dae4753ad9df53ef89addf2
Merge: 19146fb d254d25
Author: Dan Vanderkam <dan@dygraphs.com>
Date: Fri Mar 30 17:58:48 2012 -0400
merge upstream changes
commit
19146fb11c9eb7cccc1d971dad67b8175570a3e6
Author: Dan Vanderkam <dan@dygraphs.com>
Date: Tue Mar 27 00:34:45 2012 -0400
cleanup
commit
72e8cbcc829eca1054d7318cc6b5316cb5061a09
Author: Dan Vanderkam <dan@dygraphs.com>
Date: Sun Mar 25 18:34:17 2012 -0400
remove setLegendHTML
commit
f949d4cedfc3107aa4269d496e0c8106ba86a209
Author: Dan Vanderkam <dan@dygraphs.com>
Date: Sun Mar 25 17:23:26 2012 -0400
support labelsDiv; move more logic into legend.js
commit
3119af67d70891968982fc2dcc042c3f466ed99e
Author: Dan Vanderkam <dan@dygraphs.com>
Date: Sun Mar 4 13:18:39 2012 -0500
legend plugin that works!
Robert Konigsberg [Wed, 4 Apr 2012 05:17:53 +0000 (01:17 -0400)]
Edit in jsFiddle
Dan Vanderkam [Sat, 31 Mar 2012 21:57:25 +0000 (17:57 -0400)]
more docs in phantom-driver.js; log speed
Dan Vanderkam [Sat, 31 Mar 2012 21:45:08 +0000 (17:45 -0400)]
Merge branch 'master' of github.com:danvk/dygraphs
Dan Vanderkam [Sat, 31 Mar 2012 21:45:02 +0000 (17:45 -0400)]
Add "test" script, which uses phantomjs for a pure command-line test.
Dan Vanderkam [Sat, 31 Mar 2012 21:42:14 +0000 (17:42 -0400)]
fix broken test case
Robert Konigsberg [Fri, 30 Mar 2012 19:47:10 +0000 (15:47 -0400)]
Add sanity test ensuring that creating annotations in a drawCallback
results in a secondary draw, but initial parameter set to false.
Also minor formatting corrections.
James H Thompson [Thu, 29 Mar 2012 21:25:48 +0000 (17:25 -0400)]
Add highlighted weekends example to gallery
Paul Felix [Thu, 29 Mar 2012 21:24:03 +0000 (17:24 -0400)]
Misc range selector cleanup.
Dan Vanderkam [Sun, 25 Mar 2012 20:42:57 +0000 (16:42 -0400)]
add DuckDuckGo to the list of users
Dan Vanderkam [Fri, 23 Mar 2012 20:48:12 +0000 (16:48 -0400)]
destroy mouseUpHandler
Dan Vanderkam [Fri, 23 Mar 2012 20:21:29 +0000 (16:21 -0400)]
Merge branch 'master' of github.com:danvk/dygraphs
Dan Vanderkam [Fri, 23 Mar 2012 20:21:20 +0000 (16:21 -0400)]
Overwrite line heights: code.google.com/p/dygraphs/issues/detail?id=152
Dan Vanderkam [Fri, 23 Mar 2012 18:20:55 +0000 (14:20 -0400)]
fix some trailing commas in dygraph-interaction-model.js
Dan Vanderkam [Sun, 26 Feb 2012 02:45:28 +0000 (21:45 -0500)]
Fix Issue 279: Strange animations when zooming animations are enabled and double click zooming
Dan Vanderkam [Thu, 22 Mar 2012 21:54:53 +0000 (17:54 -0400)]
Fix Issue 145: Chrome/right-click seems to start implementing zoom bounding boxes.
Dan Vanderkam [Thu, 22 Mar 2012 21:44:36 +0000 (17:44 -0400)]
Fix Issue 299: option labelsKMG2 doesn't support anything after terabyte (T)
Dan Vanderkam [Thu, 22 Mar 2012 16:12:25 +0000 (12:12 -0400)]
update changes.html to reflect auto_tests
Dan Vanderkam [Thu, 22 Mar 2012 15:47:51 +0000 (11:47 -0400)]
Fix issue 197: Annotations are displayed outside the bounds of the graph
Dan Vanderkam [Mon, 19 Mar 2012 01:31:56 +0000 (21:31 -0400)]
Add support for touch gestures: swipe & pinch-to-zoom.
The interactions are a bit slow at the moment, but we can work on that.
Dan Vanderkam [Sat, 17 Mar 2012 18:13:25 +0000 (14:13 -0400)]
Fix unboxed-spark test.
display: "inline" elements cannot have an explicit width/height, but
"inline-block" elements can.
Dan Vanderkam [Sat, 17 Mar 2012 18:09:39 +0000 (14:09 -0400)]
Fix error when labelsDiv=null (was affecting unboxed-spark test)
Dan Vanderkam [Tue, 13 Mar 2012 23:15:36 +0000 (19:15 -0400)]
Merge branch 'master' of github.com:danvk/dygraphs
Dan Vanderkam [Tue, 13 Mar 2012 23:12:45 +0000 (19:12 -0400)]
Fix issue 255: date supplied as YYYY-MM-DD shows previous day's date...
JavaScript date parsing is stunningly complex. This was broken by
https://github.com/danvk/dygraphs/commit/
769e8bc7b8799385e2677b26a5c0a72e839f44ca
The underlying issue is that new Date("YYYY-MM-DD") parses the date in
UTC, but new Date("YYYY/MM/DD") parses it in the local time zone.
Dan Vanderkam [Tue, 13 Mar 2012 21:54:28 +0000 (14:54 -0700)]
Merge pull request #139 from klausw-g/stacked-NaN
Fix NaN handling for stacked graphs.
Klaus Weidner [Tue, 13 Mar 2012 21:46:46 +0000 (14:46 -0700)]
Fix NaN handling for stacked graphs.
Dygraph was handling NaNs inconsistently, drawing lines and shaded areas
for values encountered while stacking until it ran into a NaN, then
stopping at that point due to NaN contagion, with the effect that it
drew some lines and partial gaps.
Change this to create a clean gap in the data by propagatng the NaN contagion
in both directions.
Note that users can preprocess the data to replace NaNs with zeros if
they prefer that, but this should not happen by default since it's
irreversible and can lead to confusing graphs that don't match actual
data.
Dan Vanderkam [Fri, 9 Mar 2012 00:34:08 +0000 (19:34 -0500)]
Check for balanced context.save() and context.restore() calls
Dan Vanderkam [Thu, 8 Mar 2012 17:39:48 +0000 (12:39 -0500)]
Add some missing context.restore() calls
Dan Vanderkam [Sun, 4 Mar 2012 19:58:41 +0000 (11:58 -0800)]
Merge pull request #136 from klausw-g/non-logscale-x
Keep the X axis ticks when logscale is set globally.
Dan Vanderkam [Sun, 4 Mar 2012 19:57:02 +0000 (11:57 -0800)]
Merge pull request #137 from klausw-g/highlight-stacked
Fix highlighting for zoomed graphs
Dan Vanderkam [Sun, 4 Mar 2012 14:48:22 +0000 (09:48 -0500)]
Merge branch 'master' of github.com:danvk/dygraphs
Dan Vanderkam [Sun, 4 Mar 2012 14:46:37 +0000 (09:46 -0500)]
Fix a bug involving calls to updateOptions() while panning.
This showed up with data that gets updated periodically, i.e. the once/second
updates in dynamic-update.html. Previously the chart would disappear whenever
an update occurred.
Klaus Weidner [Fri, 2 Mar 2012 21:09:47 +0000 (13:09 -0800)]
Fix connectSeparatedPoints, add test
The original connectSeparatedPoints code renumbered points within series, with the effect that 'row' as used in setSelection didn't work as expected - it selects unrelated points.
This change keeps the point numbering intact, and instead moves the logic to skip missing points to the canvas renderer and setSelection().
A new auto_test confirms this behavior.
Klaus Weidner [Fri, 2 Mar 2012 18:40:14 +0000 (10:40 -0800)]
Merge branch 'master' into highlight-stacked
Robert Konigsberg [Fri, 2 Mar 2012 02:52:32 +0000 (18:52 -0800)]
Merge pull request #138 from klausw-g/highlight-series-gallery
Pulled this in, thanks! (Dan, do lmk if this is an issue)
Add closest-series highlighting demo to gallery
Klaus Weidner [Fri, 2 Mar 2012 02:49:08 +0000 (18:49 -0800)]
Add closest-series highlighting demo to gallery
This is a port of tests/series-highlight.html.
Klaus Weidner [Thu, 1 Mar 2012 18:57:01 +0000 (10:57 -0800)]
Fix highlighting for zoomed graphs
The code wasn't correctly applying the left boundary offset when converting a row index in the pruned data to/from a row index for the full data set.
Add a getLeftBoundary_ helper method and replace the existing loops that attempted to find the first defined record. Not sure why it saves multiple boundaryIds anyway, the code assumes it can just use the first one.
Also fix an apparently-invalid usage in getSelection().
Klaus Weidner [Thu, 1 Mar 2012 03:25:11 +0000 (19:25 -0800)]
Keep the X axis ticks when logscale is set globally.
Currently, setting {logscale: true} at the toplevel options with a
numeric X axis attempts to use logarithmic ticks for the X axis too,
with strange results since the X values aren't scaled logarithmically.
This resulted in tests/logscale.html skipping the "6" and "8" numbers on
the ticker, and the modified demo with a large X value shows the effect
more clearly.
This change wraps the numericTicks generator as numericLinearTicks,
ignoring 'logscale' in its axis options, and uses that for the X axis
numeric ticker. Arguably doing it the other way around would be clearer,
but that would be a much larger refactoring.
(Note that date-valued X axes as used in the stock demo weren't affected
by this issue.)
Dan Vanderkam [Wed, 29 Feb 2012 19:23:01 +0000 (11:23 -0800)]
Merge pull request #135 from klausw-g/highlight-NaN-3
New approach to fix NaN handling in highlighting
Klaus Weidner [Wed, 29 Feb 2012 18:15:50 +0000 (10:15 -0800)]
New approach to fix NaN handling in highlighting
Dan Vanderkam [Wed, 29 Feb 2012 17:50:35 +0000 (09:50 -0800)]
Merge pull request #134 from timeu/bugfix_upstream
Bugfix: Avoid getting stuck when the first datapoint has a NaN value
Dan Vanderkam [Wed, 29 Feb 2012 17:38:12 +0000 (09:38 -0800)]
Merge pull request #133 from klausw-g/fix-stuck-highlighting
Fix stuck fading animation for series highlighting
Uemit Seren [Wed, 29 Feb 2012 15:58:14 +0000 (16:58 +0100)]
Bugfix: Avoid getting stuck when the first datapoint has a NaN value
Robert Konigsberg [Wed, 29 Feb 2012 00:34:29 +0000 (19:34 -0500)]
Merge branch 'master' of https://github.com/danvk/dygraphs
Robert Konigsberg [Wed, 29 Feb 2012 00:12:25 +0000 (19:12 -0500)]
Rename stuff.
Klaus Weidner [Wed, 29 Feb 2012 00:06:32 +0000 (16:06 -0800)]
Fix stuck fading animation for series highlighting
The animateId field wasn't being initialized correctly if
clearSelection() got called before the first call to setSelection().
TODO(klausw): add more generic support for animating changes to option
values?
Robert Konigsberg [Wed, 29 Feb 2012 00:10:24 +0000 (19:10 -0500)]
Clean up docs a little, fix "title" propagation bug.
Dan Vanderkam [Tue, 28 Feb 2012 20:23:00 +0000 (12:23 -0800)]
Merge pull request #131 from klausw-g/highlight-NaN-2
Fix NaN values confusing closest-point search
Klaus Weidner [Tue, 28 Feb 2012 18:34:57 +0000 (10:34 -0800)]
Merge branch 'master' into highlight-NaN-2
Robert Konigsberg [Tue, 28 Feb 2012 11:48:22 +0000 (06:48 -0500)]
Reorder; trying to move to Gallery
Robert Konigsberg [Tue, 28 Feb 2012 11:40:29 +0000 (06:40 -0500)]
Update index.html to mention the gallery
Robert Konigsberg [Tue, 28 Feb 2012 11:31:46 +0000 (06:31 -0500)]
More name standardization.
Robert Konigsberg [Tue, 28 Feb 2012 11:24:55 +0000 (06:24 -0500)]
Doc updates / push gallery, rename some gallery js files for compatibility.
Klaus Weidner [Tue, 28 Feb 2012 04:36:01 +0000 (20:36 -0800)]
Fix NaN values confusing closest-point search
The current algorithm was not handling NaN values right, the "dist >= max"
check is false for dist=NaN and led to the "this point is closer" branch
being taken. Fix this by reversing the if logic, and add a regression
test for it. (I confirmed that the test fails for the original code,
and passes after the change.)
Robert Konigsberg [Tue, 28 Feb 2012 03:11:11 +0000 (22:11 -0500)]
Remove deleted tests from index.html
Robert Konigsberg [Tue, 28 Feb 2012 03:09:04 +0000 (22:09 -0500)]
Delete outdated tests.
Robert Konigsberg [Tue, 28 Feb 2012 03:06:27 +0000 (22:06 -0500)]
Fix option reference, remove line continuation hack.
Dan Vanderkam [Tue, 28 Feb 2012 00:17:03 +0000 (16:17 -0800)]
Merge pull request #129 from klausw-g/tweak-circle-demo
tweak custom circle demo to add per-series highlighting
Klaus Weidner [Mon, 27 Feb 2012 22:55:54 +0000 (14:55 -0800)]
Add a simple demo as a self-contained example
The fancy demos are useful to show off the supported possibilities, but
not as helpful for people who just want to switch on the feature.
Klaus Weidner [Sun, 26 Feb 2012 04:48:29 +0000 (20:48 -0800)]
tweak custom circle demo to add per-series highlighting
Also refactor the demo to automatically use all exported functions
in Dygraph.Circles instead of harcoding a list.
Dan Vanderkam [Mon, 27 Feb 2012 21:47:37 +0000 (13:47 -0800)]
Merge pull request #126 from klausw-g/highlight3
Add support for closest-series highlighting
Klaus Weidner [Mon, 27 Feb 2012 18:31:16 +0000 (10:31 -0800)]
Change option to highlightSeriesBackgroundAlpha
This is 1 - highlightSeriesBackgroundFade (using the old option), and hopefully more intuitive.
Klaus Weidner [Mon, 27 Feb 2012 18:24:31 +0000 (10:24 -0800)]
Changes based on danvk's review:
- turn on background fading by default, remove extra animation option.
- clarify docstrings for closest-point finding methods.
Dan Vanderkam [Mon, 27 Feb 2012 16:51:55 +0000 (08:51 -0800)]
Merge pull request #128 from klausw-g/custom-circle-tweaks
Custom circle tweaks:
Dan Vanderkam [Mon, 27 Feb 2012 16:23:08 +0000 (11:23 -0500)]
whitespace cleanup
Dan Vanderkam [Mon, 27 Feb 2012 16:21:11 +0000 (08:21 -0800)]
Merge pull request #125 from jllodra/master
fixed: css3 labelsDivStyles crashed in IE8
Robert Konigsberg [Mon, 27 Feb 2012 14:09:55 +0000 (09:09 -0500)]
Gallery failure when CSS does not exist.
Robert Konigsberg [Mon, 27 Feb 2012 13:04:37 +0000 (08:04 -0500)]
Gallery code links reset the URL anchor. This fixes it.
Klaus Weidner [Sun, 26 Feb 2012 04:38:40 +0000 (20:38 -0800)]
clean up closePath usage
I was confused by a wrong example I saw online, it's supposed to be used
before stroke() as it was in the original version. It's not needed
after fill() since that automatically closes the path.
Klaus Weidner [Sun, 26 Feb 2012 01:46:50 +0000 (17:46 -0800)]
Custom circle tweaks:
- use stroke + fill with white background for circles and polygons
- set the context to use the current strokeWidth and color by default,
and keep this line width for the standard single-colored symbols.
Override it as needed (for example for the smiley demo).
Klaus Weidner [Sun, 26 Feb 2012 01:11:27 +0000 (17:11 -0800)]
Tweak series-highlight demo
Klaus Weidner [Sun, 26 Feb 2012 00:04:41 +0000 (16:04 -0800)]
Merge branch 'master' of git://github.com/danvk/dygraphs into highlight3
Robert Konigsberg [Sat, 25 Feb 2012 21:48:47 +0000 (13:48 -0800)]
Merge pull request #127 from kberg/master
Clean up gallery; show HTML, Javascript and CSS in prettier fashion.
Robert Konigsberg [Sat, 25 Feb 2012 21:45:10 +0000 (16:45 -0500)]
Display CSS. This doesn't work in Chrome, locally (code.google.com/p/chromium/issues/detail?id=45786). Well it works with FF, and also should work when published.
Robert Konigsberg [Sat, 25 Feb 2012 20:40:17 +0000 (15:40 -0500)]
Updated docs for drawPointCallback and drawHighlightPointCallback.
Klaus Weidner [Sat, 25 Feb 2012 20:32:06 +0000 (12:32 -0800)]
Add demo for series highlighting
Robert Konigsberg [Sat, 25 Feb 2012 20:21:15 +0000 (15:21 -0500)]
Support line continuation in JSON format.
Klaus Weidner [Sat, 25 Feb 2012 20:18:26 +0000 (12:18 -0800)]
Merge branch 'master' of git://github.com/danvk/dygraphs into highlight3
Conflicts:
auto_tests/tests/callback.js
dygraph-canvas.js
dygraph-options-reference.js
Klaus Weidner [Sat, 25 Feb 2012 19:39:15 +0000 (11:39 -0800)]
remove mouseoverCallback and highlightUnderlay from this branch
These were part of a different change and weren't intended to be part of
this pull request, keep them separate for now.
Dan Vanderkam [Sat, 25 Feb 2012 19:38:36 +0000 (11:38 -0800)]
Merge pull request #123 from kberg/custom-points
Custom drawing circles
Klaus Weidner [Sat, 25 Feb 2012 19:37:14 +0000 (11:37 -0800)]
cleanups as requested in kberg's review
Robert Konigsberg [Sat, 25 Feb 2012 09:02:39 +0000 (04:02 -0500)]
Add "parameters" specification to docs; indented rendering.
Klaus Weidner [Sat, 25 Feb 2012 04:01:20 +0000 (20:01 -0800)]
Add support for closest-series highlighting
The new option highlightSeriesOpts applies options such as strokeWidth
to the timeseries that's currently closest to the mouse Y position,
and also passes the name of that timeseries to the highlightCallback.
There's also a new optional seriesName argument to setSelection().
See the new tests in callback.js for examples.
Also add a "highlight" class label to the currently-highlighted
timeseries in the legend view to facilitate styling via CSS.
The new options strokeBorderWidth and strokeBorderColor allow drawing a
border around graph lines to make them stand out better. This is
intended for highlightSeriesOpts, but also works when used for all
lines.
There's also support for background fading for series highlighting,
optionally animated.
New options:
highlightSeriesOpts (default null)
strokeBorderWidth (default 0 == off)
strokeBorderColor (default white)
highlightSeriesBackgroundFade (default 0 == off)
highlightSeriesAnimated (default false)
Robert Konigsberg [Sat, 25 Feb 2012 00:05:50 +0000 (19:05 -0500)]
Better gallery; separates out the HTML, Javascript and CSS. Although the CSS is missing still. :/ Should take me an hour on the weekend to finish.
Robert Konigsberg [Fri, 24 Feb 2012 14:32:49 +0000 (09:32 -0500)]
Remove comma, incompatible with IE.