dygraphs.git
5 years agoBug fix for dygraph point selection touch event. master
Adrian Iain Lam [Tue, 31 Jul 2018 03:59:43 +0000 (11:59 +0800)]
Bug fix for dygraph point selection touch event.

5 years agoMerge branch 'PR723'
Adrian Iain Lam [Tue, 31 Jul 2018 03:55:13 +0000 (11:55 +0800)]
Merge branch 'PR723'

This merges changes by @kbaggott in danvk/dygraphs PR #723,
to allow points to be selected (and thus legends to show up)
on touchscreens.

5 years agoClear graph when numAxes goes from 1 -> 2 in updateOptions
Mike Smith [Thu, 6 Oct 2016 17:02:39 +0000 (10:02 -0700)]
Clear graph when numAxes goes from 1 -> 2 in updateOptions

6 years agoUse link href, not link src (#904)
Dan Vanderkam [Tue, 30 Jan 2018 14:20:49 +0000 (09:20 -0500)]
Use link href, not link src (#904)

6 years agoRemove many points from gallery
Dan Vanderkam [Sun, 31 Dec 2017 18:33:47 +0000 (13:33 -0500)]
Remove many points from gallery

6 years agoMake sure that canvasx and canvasy properties are initialized from the start (#896)
John Fremlin [Sun, 31 Dec 2017 18:32:36 +0000 (13:32 -0500)]
Make sure that canvasx and canvasy properties are initialized from the start (#896)

Adding fields to a structure after it is created can be slow on some
browsers, like Chrome.

Adding a demo to benchmark many points, this seems to speed up my
Chromium from about 2.8-3s to about 1.8s.

Thanks to Christopher Palmer (@thecav) for the analysis and specific
suggestion.

6 years agoBump versions and add release notes
Luke Morris [Tue, 12 Dec 2017 22:26:57 +0000 (14:26 -0800)]
Bump versions and add release notes

6 years agoRemove release.sh, which is now out of date
Luke Morris [Tue, 12 Dec 2017 18:46:32 +0000 (10:46 -0800)]
Remove release.sh, which is now out of date

6 years agoBump version to 2.1.0 v2.1.0
Luke Morris [Fri, 8 Dec 2017 22:19:21 +0000 (14:19 -0800)]
Bump version to 2.1.0

6 years agoBump version to 2.0.1
Luke Morris [Thu, 7 Dec 2017 22:59:05 +0000 (14:59 -0800)]
Bump version to 2.0.1

6 years agoMillisecond granularity (#893)
lukevmorris [Thu, 7 Dec 2017 22:30:11 +0000 (14:30 -0800)]
Millisecond granularity (#893)

* Add milliseconds granularity wtih changes from #777 with suggestions taken into account and mergeable with master.

* Fix granularities according to original PR.

* Add assertions for millisecond granularities

* Add an example for labels below SECONDLY granularity

6 years agoAdded pixelRatio option to override canvas upscaling. Resolves #876, test included...
Jeff VanDyke [Wed, 20 Sep 2017 22:17:03 +0000 (18:17 -0400)]
Added pixelRatio option to override canvas upscaling. Resolves #876, test included. (#877)

* Added pixelRatio option, using where appropriate.

Falls back to old behavior if not specified.
Added to options reference,
Added to Dygraph.prototype.resizeElements_,
Added to rangeSelector.prototype.updateVisibility.

* Fixed bug in range-selector pixelRatio implementation, tests pass

* added test for the pixelRatio option, properly run.

First fails without change, then passes after change.

* Added pull request suggestions

Fix typo in docs, documented a float type,
Simplified method of reading option.

* Added note about pixelRatio affecting resolution

6 years agoFix gallery navigation from interaction demo (#825)
Madis Allikmaa [Mon, 8 May 2017 14:04:32 +0000 (17:04 +0300)]
Fix gallery navigation from interaction demo (#825)

6 years agoMake setAnnotations' boolean parameter optional. (#851)
Robert Konigsberg [Tue, 2 May 2017 21:11:44 +0000 (17:11 -0400)]
Make setAnnotations' boolean parameter optional. (#851)

6 years agoFix two inconsistencies in dygraph-externs.js (#859)
Drew Inglis [Tue, 2 May 2017 21:10:40 +0000 (17:10 -0400)]
Fix two inconsistencies in dygraph-externs.js (#859)

1. The second argument of getOption should be marked as optional per
jsdoc at: http://dygraphs.com/jsdoc/symbols/Dygraph.html#getOption

2. 'boolean' is typo'd as 'Boolean' in updateOptions.

7 years agoMerge pull request #844 from ka7/feature/spelling
Petr Shevtsov [Tue, 14 Feb 2017 21:55:34 +0000 (00:55 +0300)]
Merge pull request #844 from ka7/feature/spelling

spelling fixes

7 years agospelling fixes
klemens [Tue, 14 Feb 2017 21:17:25 +0000 (22:17 +0100)]
spelling fixes

7 years agoMake dblclick event cancelable. (#840)
Dan Vanderkam [Wed, 8 Feb 2017 18:20:36 +0000 (13:20 -0500)]
Make dblclick event cancelable. (#840)

Add demo of how to restore the dygraphs 1.x zoom out behavior.

7 years agoBump to version 2 🎉 v2.0.0
Dan Vanderkam [Wed, 11 Jan 2017 16:52:45 +0000 (11:52 -0500)]
Bump to version 2 ðŸŽ‰

7 years agoDocumentation updates
Dan Vanderkam [Wed, 11 Jan 2017 16:13:03 +0000 (11:13 -0500)]
Documentation updates

7 years agorevert change to demo.html from 1.1.1
Dan Vanderkam [Sun, 8 Jan 2017 17:13:28 +0000 (12:13 -0500)]
revert change to demo.html from 1.1.1

7 years agoRework the README a bit
Dan Vanderkam [Thu, 29 Dec 2016 01:49:05 +0000 (20:49 -0500)]
Rework the README a bit

7 years agoAdd a:visited style to link-interaction (#819)
Dan Vanderkam [Thu, 29 Dec 2016 01:30:02 +0000 (20:30 -0500)]
Add a:visited style to link-interaction (#819)

* bump version

* Color visited links

7 years agoRemove dead code (#818)
Dan Vanderkam [Wed, 28 Dec 2016 21:59:53 +0000 (16:59 -0500)]
Remove dead code (#818)

7 years agoFix #816; remove references to valueWindow (#817)
Dan Vanderkam [Wed, 28 Dec 2016 21:57:40 +0000 (16:57 -0500)]
Fix #816; remove references to valueWindow (#817)

7 years ago2.0.0 release fixes (#815)
Dan Vanderkam [Wed, 28 Dec 2016 21:37:08 +0000 (16:37 -0500)]
2.0.0 release fixes (#815)

* Documentation / test cleanup
* Remove deprecated avoidMinZero option
* remove all references to dygraph-combined
* Drop for..of and polyfill to save space
* Check for strings in native format
* Generate minified CSS
* Get npm distribution working
* Guard process access for rollup
* Add ES6 example to home page
* Update tests to source CSS from dist
* update some references
* Drop bower, bump version
* index.es5.js
* bump version

7 years agoImport babel polyfill (#813)
Dan Vanderkam [Tue, 27 Dec 2016 15:12:55 +0000 (10:12 -0500)]
Import babel polyfill (#813)

7 years agoMake resetZoom consistent between x- and y-axes (#812)
Dan Vanderkam [Tue, 27 Dec 2016 13:56:51 +0000 (08:56 -0500)]
Make resetZoom consistent between x- and y-axes (#812)

This also eliminates isZoomedIgnoreProgrammaticZoom and the zoomed_x, zoomed_y flags.

7 years agoFixed attribute name typo in legend follow (#792)
neurot1k [Thu, 6 Oct 2016 17:49:08 +0000 (10:49 -0700)]
Fixed attribute name typo in legend follow (#792)

7 years agoRemove some dead data handler coder (#787)
Dan Vanderkam [Sun, 2 Oct 2016 15:29:46 +0000 (11:29 -0400)]
Remove some dead data handler coder (#787)

7 years ago[Feature Request] Provide option to set color and width for annotation line (#703)
Sanjay Rohila [Sun, 2 Oct 2016 15:28:50 +0000 (20:58 +0530)]
[Feature Request] Provide option to set color and width for annotation line (#703)

* Provide option to set color and width for annotation line

* documentation for new annotation options

7 years agoauto_tests for XHRs (#786)
Dan Vanderkam [Sat, 1 Oct 2016 21:30:52 +0000 (17:30 -0400)]
auto_tests for XHRs (#786)

7 years agoOnly include visible series in range selector (#785)
Dan Vanderkam [Sat, 1 Oct 2016 21:02:52 +0000 (17:02 -0400)]
Only include visible series in range selector (#785)

7 years agoRemove isAndroid checks (#784)
Dan Vanderkam [Sat, 1 Oct 2016 20:25:44 +0000 (16:25 -0400)]
Remove isAndroid checks (#784)

7 years agoMake old-style per-series options throw (#783)
Dan Vanderkam [Sat, 1 Oct 2016 19:55:24 +0000 (15:55 -0400)]
Make old-style per-series options throw (#783)

7 years agoRemove gadget links from tutorial (#780)
Dan Vanderkam [Thu, 29 Sep 2016 16:02:43 +0000 (12:02 -0400)]
Remove gadget links from tutorial (#780)

7 years agoSet x appropriately for series but not point selection (#779)
Dan Vanderkam [Thu, 29 Sep 2016 15:44:48 +0000 (11:44 -0400)]
Set x appropriately for series but not point selection (#779)

7 years agoMerge pull request #678 from danvk/dygraphs-css
Dan Vanderkam [Wed, 28 Sep 2016 12:50:36 +0000 (08:50 -0400)]
Merge pull request #678 from danvk/dygraphs-css

Move styles over to CSS

7 years agoUse CSS for tests, gallery and docs dygraphs-css
Dan Vanderkam [Wed, 28 Sep 2016 12:45:57 +0000 (08:45 -0400)]
Use CSS for tests, gallery and docs

7 years agoUse CSS for styling
Dan Vanderkam [Wed, 28 Sep 2016 12:45:38 +0000 (08:45 -0400)]
Use CSS for styling

7 years agoDygraph.dateString_: shows milliseconds if any. (#774)
Pierrick Koch [Thu, 15 Sep 2016 13:23:48 +0000 (15:23 +0200)]
Dygraph.dateString_: shows milliseconds if any. (#774)

* [utils] dateString_ display Milliseconds if any

* [utils] fix dateAxisLabelFormatter milliseconds

* [util] dateString_: compute ms in frac

* [utils] clean hmsString_ format

* [utils] add milliseconds padding in hmsString_

* [develop] add note on npm install

* [tests] add labelsDateMilliseconds test

* [utils] add millis in dateAxisLabelFormatter

* [tests] fix requested changes in labelsDateMillis

* [auto_tests] add date_formats testMillisecondsDate

7 years agoCheck that setRow is not negative, fixes #644. (#773)
Majlen [Mon, 12 Sep 2016 15:43:49 +0000 (17:43 +0200)]
Check that setRow is not negative, fixes #644. (#773)

Synchronization breaks up if this case is not checked. Fix has been
proposed in the bugreport.

7 years agoBug fix: indexFromSetName on invisible sets (#771)
Steve Jones [Fri, 26 Aug 2016 15:48:09 +0000 (17:48 +0200)]
Bug fix: indexFromSetName on invisible sets (#771)

* indexFromSetName works with trailing invisible sets

If the last set(s) have their visibility set to false, their names
would not be added to `setIndexByName_`, so `indexFromSetName` would
not be able to find them. This fixes that problem.

* Corrected test.

* Properly clone graph options

7 years agoMerge pull request #764 from danvk/label_v
Dan Vanderkam [Tue, 2 Aug 2016 19:37:46 +0000 (15:37 -0400)]
Merge pull request #764 from danvk/label_v

Implement label_v

7 years agoDemo of label_v
Dan Vanderkam [Tue, 2 Aug 2016 19:15:51 +0000 (15:15 -0400)]
Demo of label_v

7 years agoImplement tick.label_v.
Dan Vanderkam [Tue, 2 Aug 2016 19:00:32 +0000 (15:00 -0400)]
Implement tick.label_v.

7 years agoMerge pull request #761 from justinsg/master
Dan Vanderkam [Mon, 11 Jul 2016 22:20:41 +0000 (18:20 -0400)]
Merge pull request #761 from justinsg/master

Check for new options before updating synchronised graphs (Fixes #760)

7 years agoCheck for new options before updating synchronised graphs (Fixes #760)
Justin Standring [Fri, 8 Jul 2016 23:05:40 +0000 (16:05 -0700)]
Check for new options before updating synchronised graphs (Fixes #760)

7 years agoMerge pull request #746 from mrcslws/wrong-gap-edge-point
Dan Vanderkam [Thu, 12 May 2016 15:38:04 +0000 (11:38 -0400)]
Merge pull request #746 from mrcslws/wrong-gap-edge-point

Bugfix: Unwanted drawn point when prevCanvasX is 0

7 years agoAdd unit test to detect the "unwanted draw point"
Marcus Lewis [Thu, 5 May 2016 19:55:17 +0000 (12:55 -0700)]
Add unit test to detect the "unwanted draw point"

7 years agoBugfix: Unwanted drawn point when prevCanvasX is 0
Marcus Lewis [Thu, 5 May 2016 03:03:36 +0000 (20:03 -0700)]
Bugfix: Unwanted drawn point when prevCanvasX is 0

8 years agoMerge pull request #736 from danvk/issue-pr-templates
Dan Vanderkam [Wed, 16 Mar 2016 16:48:15 +0000 (11:48 -0500)]
Merge pull request #736 from danvk/issue-pr-templates

Add new issue and PR templates

8 years agoAdd new issue and PR templates issue-pr-templates
Dan Vanderkam [Wed, 16 Mar 2016 16:43:48 +0000 (12:43 -0400)]
Add new issue and PR templates

8 years agoMerge pull request #732 from klausw/master
Dan Vanderkam [Tue, 8 Mar 2016 16:29:39 +0000 (11:29 -0500)]
Merge pull request #732 from klausw/master

Fix yRangePad for logscale graphs, add tests.

8 years agoMerge pull request #729 from danvk/chart-overlaps
Petr Shevtsov [Wed, 2 Mar 2016 22:52:59 +0000 (03:52 +0500)]
Merge pull request #729 from danvk/chart-overlaps

Chart overlaps "Edit in jsFiddle" button

8 years agoFix yRangePad for logscale graphs, add tests.
Klaus Weidner [Tue, 1 Mar 2016 21:57:05 +0000 (13:57 -0800)]
Fix yRangePad for logscale graphs, add tests.

Also includes a minor refactor to consolidate duplicated code for
toDataCoord calculations on logscale axes.

Fixes issue #661.

8 years agoUpdate gallery.css
Petr Shevtsov [Fri, 26 Feb 2016 02:31:06 +0000 (07:31 +0500)]
Update gallery.css

Fix #458

8 years agoMerge pull request #715 from simonkwesi/patch-1
Dan Vanderkam [Mon, 8 Feb 2016 17:38:32 +0000 (12:38 -0500)]
Merge pull request #715 from simonkwesi/patch-1

Extended list of users

8 years agoMerge pull request #725 from timeu/patch-2
Dan Vanderkam [Mon, 8 Feb 2016 17:05:16 +0000 (12:05 -0500)]
Merge pull request #725 from timeu/patch-2

Bugfix: Import missing dygraph-utils.js

8 years agoBugfix: Import missing dygraph-utils.js
Ãœmit Seren [Mon, 8 Feb 2016 12:04:32 +0000 (13:04 +0100)]
Bugfix: Import missing dygraph-utils.js

The IFrameTarp.prototype.cover function calls `findPos` from the `dygraph-utils.js` file but does not import it.
This fixes #724

8 years agousing changedTouches instead of touches
Kyle Baggott [Tue, 2 Feb 2016 10:55:20 +0000 (10:55 +0000)]
using changedTouches instead of touches

In testing on different devices it seems changedTouches is better supported cross platform, using this instead of the the touches object.
Roughly tested on iOS and Android.

8 years agomoving the lastTouch save into the "one touch" more efficient
Kyle Baggott [Tue, 2 Feb 2016 10:38:40 +0000 (10:38 +0000)]
moving the lastTouch save into the "one touch" more efficient

8 years agoAdding touchOVER check to the pageX/Y
Kyle Baggott [Mon, 1 Feb 2016 21:38:56 +0000 (21:38 +0000)]
Adding touchOVER check to the pageX/Y

Adding touchOVER check to the pageX/Y as it only exists under touches for touch events.

8 years agoRenaming the event to touchOVER as it makes more sense
Kyle Baggott [Mon, 1 Feb 2016 21:33:34 +0000 (21:33 +0000)]
Renaming the event to touchOVER as it makes more sense

8 years agoSaving the lastTouch to check for a "touchOVER"
Kyle Baggott [Mon, 1 Feb 2016 21:29:35 +0000 (21:29 +0000)]
Saving the lastTouch to check for a "touchOVER"

Saving the lastTouch and looking to see if other functions wipe it before passing a special param to tell the other functions that it's a touchOVER.

8 years agoExtended list of users
simonkwesi [Thu, 21 Jan 2016 20:18:41 +0000 (21:18 +0100)]
Extended list of users

8 years agoMerge pull request #692 from musicist288/zero-coordinate-bugs
Dan Vanderkam [Mon, 16 Nov 2015 21:51:27 +0000 (16:51 -0500)]
Merge pull request #692 from musicist288/zero-coordinate-bugs

Allow selected points where canvas-y coordinate is 0

8 years agoPR Comment: Removing checks for undefined and null. They aren't possible
Joseph Rossi [Mon, 16 Nov 2015 21:00:41 +0000 (16:00 -0500)]
PR Comment: Removing checks for undefined and null. They aren't possible

8 years agoPR Comment: Adding check for undefined and changing back file modes
Joseph Rossi [Mon, 16 Nov 2015 20:48:06 +0000 (15:48 -0500)]
PR Comment: Adding check for undefined and changing back file modes

8 years agoBug: Allow points where canvas-y === 0
Joseph Rossi [Mon, 16 Nov 2015 19:06:46 +0000 (14:06 -0500)]
Bug: Allow points where canvas-y === 0

The check for `utils.isOK` blacklists the value 0. In the context of
validating selected points and reporting them in the legend, any point
where canvas-y zero should be included.

8 years agoTests for 0 coordinate in selection drawing and lengend generation.
Joseph Rossi [Mon, 16 Nov 2015 19:55:44 +0000 (14:55 -0500)]
Tests for 0 coordinate in selection drawing and lengend generation.

This test demonstrates how updateSelection_ and generateLegendHTML
were ignoring points whose canvas-y value was 0. The next commit will
fix these breaking tests

8 years agoMerge pull request #693 from danvk/opt-size-check
Dan Vanderkam [Mon, 16 Nov 2015 20:49:16 +0000 (15:49 -0500)]
Merge pull request #693 from danvk/opt-size-check

Optionalize size check

8 years agoOptionalize size check opt-size-check
Dan Vanderkam [Mon, 16 Nov 2015 20:40:34 +0000 (15:40 -0500)]
Optionalize size check

8 years agoMerge pull request #683 from danvk/legend-formatter
Dan Vanderkam [Wed, 4 Nov 2015 14:47:16 +0000 (09:47 -0500)]
Merge pull request #683 from danvk/legend-formatter

Add a legendFormatter option

8 years agousage legend-formatter
Dan Vanderkam [Wed, 28 Oct 2015 20:22:38 +0000 (16:22 -0400)]
usage

8 years agoDemo of legendFormatter
Dan Vanderkam [Wed, 28 Oct 2015 20:17:45 +0000 (16:17 -0400)]
Demo of legendFormatter

8 years agoAdd a legendFormatter option
Dan Vanderkam [Wed, 28 Oct 2015 14:25:27 +0000 (10:25 -0400)]
Add a legendFormatter option

8 years agoMerge pull request #682 from danvk/revive-602
Dan Vanderkam [Tue, 27 Oct 2015 14:44:55 +0000 (10:44 -0400)]
Merge pull request #682 from danvk/revive-602

Add highlightSeriesBackgroundColor option

8 years agoAttempt to make async tests run faster revive-602
Dan Vanderkam [Tue, 27 Oct 2015 14:10:33 +0000 (10:10 -0400)]
Attempt to make async tests run faster

8 years agoPass --grep to mocha from the command line.
Dan Vanderkam [Tue, 27 Oct 2015 14:09:58 +0000 (10:09 -0400)]
Pass --grep to mocha from the command line.

8 years agoUpdate to ES6 modules
Dan Vanderkam [Tue, 27 Oct 2015 13:37:45 +0000 (09:37 -0400)]
Update to ES6 modules

8 years agoAdd a "highlightSeriesBackgroundColor" option
Sergey Slepian [Tue, 27 Oct 2015 13:25:39 +0000 (09:25 -0400)]
Add a "highlightSeriesBackgroundColor" option

This allows customization of the semi-transparent overlay that is shown
on series highlight.

See #602

8 years agoMerge pull request #680 from danvk/gzip-size
Dan Vanderkam [Mon, 26 Oct 2015 17:55:12 +0000 (13:55 -0400)]
Merge pull request #680 from danvk/gzip-size

Track gzipped code size, too

8 years agoTrack gzipped code size, too gzip-size
Dan Vanderkam [Mon, 26 Oct 2015 17:47:08 +0000 (13:47 -0400)]
Track gzipped code size, too

8 years agoMerge pull request #677 from danvk/split-iframe-tarp
Dan Vanderkam [Sun, 25 Oct 2015 04:41:17 +0000 (00:41 -0400)]
Merge pull request #677 from danvk/split-iframe-tarp

Split out IFrameTarp module

8 years agosplit out IFrameTarp split-iframe-tarp
Dan Vanderkam [Sun, 25 Oct 2015 04:29:38 +0000 (00:29 -0400)]
split out IFrameTarp

8 years agoMerge pull request #676 from danvk/module-cleanup
Dan Vanderkam [Sun, 25 Oct 2015 04:20:51 +0000 (00:20 -0400)]
Merge pull request #676 from danvk/module-cleanup

Export a few more symbols

8 years agoExport a few more symbols module-cleanup
Dan Vanderkam [Sun, 25 Oct 2015 04:14:28 +0000 (00:14 -0400)]
Export a few more symbols

8 years agoMerge pull request #674 from danvk/module
Dan Vanderkam [Sun, 25 Oct 2015 04:09:25 +0000 (00:09 -0400)]
Merge pull request #674 from danvk/module

Use ES6 modules

8 years agoPrepend license to dygraph.min.js module
Dan Vanderkam [Sun, 25 Oct 2015 02:38:39 +0000 (22:38 -0400)]
Prepend license to dygraph.min.js

8 years agoUpdate docs
Dan Vanderkam [Sun, 25 Oct 2015 02:33:10 +0000 (22:33 -0400)]
Update docs

8 years agocopy over a sneaky undefined value
Dan Vanderkam [Sun, 25 Oct 2015 02:26:15 +0000 (22:26 -0400)]
copy over a sneaky undefined value

8 years agoFix errors/warnings in tests/*.html
Dan Vanderkam [Sun, 25 Oct 2015 02:17:58 +0000 (22:17 -0400)]
Fix errors/warnings in tests/*.html

8 years agofix some tests & gallery entries
Dan Vanderkam [Sat, 24 Oct 2015 17:41:00 +0000 (13:41 -0400)]
fix some tests & gallery entries

8 years agoPost coverage from travis job
Dan Vanderkam [Fri, 23 Oct 2015 23:24:32 +0000 (19:24 -0400)]
Post coverage from travis job

8 years agoDown with gulp
Dan Vanderkam [Fri, 23 Oct 2015 23:24:23 +0000 (19:24 -0400)]
Down with gulp

8 years agoGenerate code coverage with Istanbul
Dan Vanderkam [Fri, 23 Oct 2015 23:20:54 +0000 (19:20 -0400)]
Generate code coverage with Istanbul

8 years agoconsolidating scripts
Dan Vanderkam [Fri, 23 Oct 2015 22:31:47 +0000 (18:31 -0400)]
consolidating scripts

8 years agoclean up deps
Dan Vanderkam [Fri, 23 Oct 2015 22:17:39 +0000 (18:17 -0400)]
clean up deps

8 years agoRun tests on Travis-CI.
Dan Vanderkam [Fri, 23 Oct 2015 21:15:11 +0000 (17:15 -0400)]
Run tests on Travis-CI.