dygraphs.git
12 years agoFixed Issue 206: stepPlot is not considered for stacked filling
David Watrous [Wed, 18 Apr 2012 16:55:58 +0000 (12:55 -0400)]
Fixed Issue 206: stepPlot is not considered for stacked filling

12 years agoTweak the addEvent/removeEvent code. Restore the non-object methods, and add a second...
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.

12 years agoMerge pull request #143 from klausw-g/plugin-tweaks
Dan Vanderkam [Wed, 18 Apr 2012 15:21:47 +0000 (08:21 -0700)]
Merge pull request #143 from klausw-g/plugin-tweaks

Plugin tweaks

12 years agoTracking all event registrations, and deallocating them en masse makes
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.

12 years agoMore fixes for http://code.google.com/p/dygraphs/issues/detail?id=312
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

12 years agoFilter out the query directory from docs. Fixes http://code.google.com/p/dygraphs...
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

12 years agore-add 'validate eventName' TODO.
Klaus Weidner [Tue, 10 Apr 2012 23:08:32 +0000 (16:08 -0700)]
re-add 'validate eventName' TODO.

12 years agoUpdate plugin registry
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

12 years agoFix small regression in behavior on plugin CSS (issue 315)
Dan Vanderkam [Tue, 10 Apr 2012 22:50:18 +0000 (18:50 -0400)]
Fix small regression in behavior on plugin CSS (issue 315)

12 years agoAvoid calling length on undefined if no event handlers are registered.
Klaus Weidner [Tue, 10 Apr 2012 22:49:46 +0000 (15:49 -0700)]
Avoid calling length on undefined if no event handlers are registered.

12 years agofix regression on issue 152
Dan Vanderkam [Tue, 10 Apr 2012 22:40:26 +0000 (18:40 -0400)]
fix regression on issue 152

12 years agoklaus comments on plugins
Dan Vanderkam [Tue, 10 Apr 2012 22:38:00 +0000 (18:38 -0400)]
klaus comments on plugins

12 years agoFix most warnings in tests; add support for loading (non-auto) tests to phantom-drive...
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.

12 years agoCopy new plugins dir to dygraphs.com
Dan Vanderkam [Sat, 7 Apr 2012 17:07:19 +0000 (13:07 -0400)]
Copy new plugins dir to dygraphs.com

12 years agoIntroduce a plugin system and move the legend to it.
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!

12 years agoEdit in jsFiddle
Robert Konigsberg [Wed, 4 Apr 2012 05:17:53 +0000 (01:17 -0400)]
Edit in jsFiddle

12 years agomore docs in phantom-driver.js; log speed
Dan Vanderkam [Sat, 31 Mar 2012 21:57:25 +0000 (17:57 -0400)]
more docs in phantom-driver.js; log speed

12 years agoMerge branch 'master' of github.com:danvk/dygraphs
Dan Vanderkam [Sat, 31 Mar 2012 21:45:08 +0000 (17:45 -0400)]
Merge branch 'master' of github.com:danvk/dygraphs

12 years agoAdd "test" script, which uses phantomjs for a pure command-line test.
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.

12 years agofix broken test case
Dan Vanderkam [Sat, 31 Mar 2012 21:42:14 +0000 (17:42 -0400)]
fix broken test case

12 years agoAdd sanity test ensuring that creating annotations in a drawCallback
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.

12 years agoAdd highlighted weekends example to gallery
James H Thompson [Thu, 29 Mar 2012 21:25:48 +0000 (17:25 -0400)]
Add highlighted weekends example to gallery

12 years agoMisc range selector cleanup.
Paul Felix [Thu, 29 Mar 2012 21:24:03 +0000 (17:24 -0400)]
Misc range selector cleanup.

12 years agoadd DuckDuckGo to the list of users
Dan Vanderkam [Sun, 25 Mar 2012 20:42:57 +0000 (16:42 -0400)]
add DuckDuckGo to the list of users

12 years agodestroy mouseUpHandler
Dan Vanderkam [Fri, 23 Mar 2012 20:48:12 +0000 (16:48 -0400)]
destroy mouseUpHandler

12 years agoMerge branch 'master' of github.com:danvk/dygraphs
Dan Vanderkam [Fri, 23 Mar 2012 20:21:29 +0000 (16:21 -0400)]
Merge branch 'master' of github.com:danvk/dygraphs

12 years agoOverwrite line heights: http://code.google.com/p/dygraphs/issues/detail?id=152
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

12 years agofix some trailing commas in dygraph-interaction-model.js
Dan Vanderkam [Fri, 23 Mar 2012 18:20:55 +0000 (14:20 -0400)]
fix some trailing commas in dygraph-interaction-model.js

12 years agoFix Issue 279: Strange animations when zooming animations are enabled and double...
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

12 years agoFix Issue 145: Chrome/right-click seems to start implementing zoom bounding boxes.
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.

12 years agoFix Issue 299: option labelsKMG2 doesn't support anything after terabyte (T)
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)

12 years agoupdate changes.html to reflect auto_tests
Dan Vanderkam [Thu, 22 Mar 2012 16:12:25 +0000 (12:12 -0400)]
update changes.html to reflect auto_tests

12 years agoFix issue 197: Annotations are displayed outside the bounds of the graph
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

12 years agoAdd support for touch gestures: swipe & pinch-to-zoom.
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.

12 years agoFix unboxed-spark test.
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.

12 years agoFix error when labelsDiv=null (was affecting unboxed-spark test)
Dan Vanderkam [Sat, 17 Mar 2012 18:09:39 +0000 (14:09 -0400)]
Fix error when labelsDiv=null (was affecting unboxed-spark test)

12 years agoMerge branch 'master' of github.com:danvk/dygraphs
Dan Vanderkam [Tue, 13 Mar 2012 23:15:36 +0000 (19:15 -0400)]
Merge branch 'master' of github.com:danvk/dygraphs

12 years agoFix issue 255: date supplied as YYYY-MM-DD shows previous day's date...
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.

12 years agoMerge pull request #139 from klausw-g/stacked-NaN
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.

12 years agoFix 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.

12 years agoCheck for balanced context.save() and context.restore() calls
Dan Vanderkam [Fri, 9 Mar 2012 00:34:08 +0000 (19:34 -0500)]
Check for balanced context.save() and context.restore() calls

12 years agoAdd some missing context.restore() calls
Dan Vanderkam [Thu, 8 Mar 2012 17:39:48 +0000 (12:39 -0500)]
Add some missing context.restore() calls

12 years agoMerge pull request #136 from klausw-g/non-logscale-x
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.

12 years agoMerge pull request #137 from klausw-g/highlight-stacked
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

12 years agoMerge branch 'master' of github.com:danvk/dygraphs
Dan Vanderkam [Sun, 4 Mar 2012 14:48:22 +0000 (09:48 -0500)]
Merge branch 'master' of github.com:danvk/dygraphs

12 years agoFix a bug involving calls to updateOptions() while panning.
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.

12 years agoFix connectSeparatedPoints, add test
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.

12 years agoMerge branch 'master' into highlight-stacked
Klaus Weidner [Fri, 2 Mar 2012 18:40:14 +0000 (10:40 -0800)]
Merge branch 'master' into highlight-stacked

12 years agoMerge pull request #138 from klausw-g/highlight-series-gallery
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

12 years agoAdd 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.

12 years agoFix highlighting for zoomed graphs
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().

12 years agoKeep the X axis ticks when logscale is set globally.
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.)

12 years agoMerge pull request #135 from klausw-g/highlight-NaN-3
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

12 years agoNew 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

12 years agoMerge pull request #134 from timeu/bugfix_upstream
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

12 years agoMerge pull request #133 from klausw-g/fix-stuck-highlighting
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

12 years agoBugfix: Avoid getting stuck when the first datapoint has a NaN value
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

12 years agoMerge branch 'master' of https://github.com/danvk/dygraphs
Robert Konigsberg [Wed, 29 Feb 2012 00:34:29 +0000 (19:34 -0500)]
Merge branch 'master' of https://github.com/danvk/dygraphs

12 years agoRename stuff.
Robert Konigsberg [Wed, 29 Feb 2012 00:12:25 +0000 (19:12 -0500)]
Rename stuff.

12 years agoFix stuck fading animation for series highlighting
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?

12 years agoClean up docs a little, fix "title" propagation bug.
Robert Konigsberg [Wed, 29 Feb 2012 00:10:24 +0000 (19:10 -0500)]
Clean up docs a little, fix "title" propagation bug.

12 years agoMerge pull request #131 from klausw-g/highlight-NaN-2
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

12 years agoMerge branch 'master' into highlight-NaN-2
Klaus Weidner [Tue, 28 Feb 2012 18:34:57 +0000 (10:34 -0800)]
Merge branch 'master' into highlight-NaN-2

12 years agoReorder; trying to move to Gallery
Robert Konigsberg [Tue, 28 Feb 2012 11:48:22 +0000 (06:48 -0500)]
Reorder; trying to move to Gallery

12 years agoUpdate index.html to mention the gallery
Robert Konigsberg [Tue, 28 Feb 2012 11:40:29 +0000 (06:40 -0500)]
Update index.html to mention the gallery

12 years agoMore name standardization.
Robert Konigsberg [Tue, 28 Feb 2012 11:31:46 +0000 (06:31 -0500)]
More name standardization.

12 years agoDoc updates / push gallery, rename some gallery js files for compatibility.
Robert Konigsberg [Tue, 28 Feb 2012 11:24:55 +0000 (06:24 -0500)]
Doc updates / push gallery, rename some gallery js files for compatibility.

12 years agoFix NaN values confusing closest-point search
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.)

12 years agoRemove deleted tests from index.html
Robert Konigsberg [Tue, 28 Feb 2012 03:11:11 +0000 (22:11 -0500)]
Remove deleted tests from index.html

12 years agoDelete outdated tests.
Robert Konigsberg [Tue, 28 Feb 2012 03:09:04 +0000 (22:09 -0500)]
Delete outdated tests.

12 years agoFix option reference, remove line continuation hack.
Robert Konigsberg [Tue, 28 Feb 2012 03:06:27 +0000 (22:06 -0500)]
Fix option reference, remove line continuation hack.

12 years agoMerge pull request #129 from klausw-g/tweak-circle-demo
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

12 years agoAdd a simple demo as a self-contained example
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.

12 years agotweak custom circle demo to add per-series highlighting
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.

12 years agoMerge pull request #126 from klausw-g/highlight3
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

12 years agoChange option to highlightSeriesBackgroundAlpha
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.

12 years agoChanges based on danvk's review:
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.

12 years agoMerge pull request #128 from klausw-g/custom-circle-tweaks
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:

12 years agowhitespace cleanup
Dan Vanderkam [Mon, 27 Feb 2012 16:23:08 +0000 (11:23 -0500)]
whitespace cleanup

12 years agoMerge pull request #125 from jllodra/master
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

12 years agoGallery failure when CSS does not exist.
Robert Konigsberg [Mon, 27 Feb 2012 14:09:55 +0000 (09:09 -0500)]
Gallery failure when CSS does not exist.

12 years agoGallery code links reset the URL anchor. This fixes it.
Robert Konigsberg [Mon, 27 Feb 2012 13:04:37 +0000 (08:04 -0500)]
Gallery code links reset the URL anchor. This fixes it.

12 years agoclean up closePath usage
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.

12 years agoCustom circle tweaks:
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).

12 years agoTweak series-highlight demo
Klaus Weidner [Sun, 26 Feb 2012 01:11:27 +0000 (17:11 -0800)]
Tweak series-highlight demo

12 years agoMerge branch 'master' of git://github.com/danvk/dygraphs into highlight3
Klaus Weidner [Sun, 26 Feb 2012 00:04:41 +0000 (16:04 -0800)]
Merge branch 'master' of git://github.com/danvk/dygraphs into highlight3

12 years agoMerge pull request #127 from kberg/master
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.

12 years agoDisplay CSS. This doesn't work in Chrome, locally (http://code.google.com/p/chromium...
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.

12 years agoUpdated docs for drawPointCallback and drawHighlightPointCallback.
Robert Konigsberg [Sat, 25 Feb 2012 20:40:17 +0000 (15:40 -0500)]
Updated docs for drawPointCallback and drawHighlightPointCallback.

12 years agoAdd demo for series highlighting
Klaus Weidner [Sat, 25 Feb 2012 20:32:06 +0000 (12:32 -0800)]
Add demo for series highlighting

12 years agoSupport line continuation in JSON format.
Robert Konigsberg [Sat, 25 Feb 2012 20:21:15 +0000 (15:21 -0500)]
Support line continuation in JSON format.

12 years agoMerge branch 'master' of git://github.com/danvk/dygraphs into highlight3
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

12 years agoremove mouseoverCallback and highlightUnderlay from this branch
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.

12 years agoMerge pull request #123 from kberg/custom-points
Dan Vanderkam [Sat, 25 Feb 2012 19:38:36 +0000 (11:38 -0800)]
Merge pull request #123 from kberg/custom-points

Custom drawing circles

12 years agocleanups as requested in kberg's review
Klaus Weidner [Sat, 25 Feb 2012 19:37:14 +0000 (11:37 -0800)]
cleanups as requested in kberg's review

12 years agoAdd "parameters" specification to docs; indented rendering.
Robert Konigsberg [Sat, 25 Feb 2012 09:02:39 +0000 (04:02 -0500)]
Add "parameters" specification to docs; indented rendering.

12 years agoAdd support for closest-series highlighting
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)

12 years agoBetter gallery; separates out the HTML, Javascript and CSS. Although the CSS is missi...
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.

12 years agoRemove comma, incompatible with IE.
Robert Konigsberg [Fri, 24 Feb 2012 14:32:49 +0000 (09:32 -0500)]
Remove comma, incompatible with IE.

12 years agoconsole.warn to this.warn
Josep Llodrà€ [Fri, 24 Feb 2012 13:50:17 +0000 (14:50 +0100)]
console.warn to this.warn