dygraphs.git
9 years agorename labelsDateUTC --> labelsUTC
Dan Vanderkam [Wed, 5 Nov 2014 14:32:00 +0000 (09:32 -0500)]
rename labelsDateUTC --> labelsUTC

9 years agocleanup
Dan Vanderkam [Tue, 4 Nov 2014 22:42:07 +0000 (17:42 -0500)]
cleanup

9 years agoAdd alias for old method name; revert daylight-savings.html
Dan Vanderkam [Tue, 4 Nov 2014 22:27:46 +0000 (17:27 -0500)]
Add alias for old method name; revert daylight-savings.html

9 years agoadd date/time axis option to benchmark
Dan Vanderkam [Fri, 31 Oct 2014 17:00:17 +0000 (13:00 -0400)]
add date/time axis option to benchmark

9 years agoAdding test for multi axis stacking
Jason John Sayers [Thu, 30 Oct 2014 18:24:29 +0000 (13:24 -0500)]
Adding test for multi axis stacking

9 years agoFix ghosting issues when viewing graphs with browser zoomed out. Closes #440.
Gregory Jordan [Tue, 21 Oct 2014 17:24:41 +0000 (13:24 -0400)]
Fix ghosting issues when viewing graphs with browser zoomed out. Closes #440.

9 years agoChanged code to separate graph stacking logic by axis.
Jason John Sayers [Tue, 30 Sep 2014 14:00:23 +0000 (09:00 -0500)]
Changed code to separate graph stacking logic by axis.

9 years agoMove date accessors to utils script and adapt tick generation and format.
Joan Pau Beltran [Mon, 3 Nov 2014 15:45:33 +0000 (16:45 +0100)]
Move date accessors to utils script and adapt tick generation and format.

Add two properties to the `Dygraph` object to hold the date accessor methods
according to either UTC or local time.

Use these accessors to simplify a little bit the label format
and the tick generation.

9 years agoFix comment and revert changes in DST transition test as requested.
Joan Pau Beltran [Mon, 3 Nov 2014 15:43:20 +0000 (16:43 +0100)]
Fix comment and revert changes in DST transition test as requested.

9 years agoFix tick location according to local time near DST transitions.
Joan Pau Beltran [Thu, 30 Oct 2014 13:35:42 +0000 (09:35 -0400)]
Fix tick location according to local time near DST transitions.

The curent algorithm for tick generation uses the 'roll over'
property of the `Date` methods. Hence, it produces two artifacts:

  1.  A one-hour gap of ticks within an hour of the 'fall back' transition.

  2.  Moves ticks within the hour skipped at the 'spring forward' transition.

To solve the first defect, use the constant spacing in milliseconds
for granularities not coarser than hourly.

To solve the second defect, check that computed dates using the 'roll over'
method return the expected tick position.

9 years agoSwitch to full year in date tick labels.
Joan Pau Beltran [Thu, 30 Oct 2014 12:44:19 +0000 (08:44 -0400)]
Switch to full year in date tick labels.

Use the full year in date tick labels ('Apr 2008'),
instead of only the last two digits ('Apr 08').

Adapt the date ticker test suite for the new label format.

9 years agoMerge remote-tracking branch 'danvk/292-squash' into utc_datetime_labels-issue_498-v2
Joan Pau Beltran [Mon, 27 Oct 2014 15:18:00 +0000 (11:18 -0400)]
Merge remote-tracking branch 'danvk/292-squash' into utc_datetime_labels-issue_498-v2

This is an squash and rebase onto last version of master.
Some minor changes added as per comments in the PR.

9 years agoRebase PR 292
Dan Vanderkam [Wed, 22 Oct 2014 02:41:27 +0000 (22:41 -0400)]
Rebase PR 292

9 years agoCheck that dygraph-combined is un-generated when testing.
Dan Vanderkam [Tue, 21 Oct 2014 14:44:32 +0000 (10:44 -0400)]
Check that dygraph-combined is un-generated when testing.

9 years agoCONTRIBUTING.md formatting
Dan Vanderkam [Tue, 21 Oct 2014 05:19:46 +0000 (01:19 -0400)]
CONTRIBUTING.md formatting

9 years agoAdd a guide to contributing
Dan Vanderkam [Tue, 21 Oct 2014 05:19:12 +0000 (01:19 -0400)]
Add a guide to contributing

9 years agocheck for correct versions in package.json and bower.json
Dan Vanderkam [Tue, 21 Oct 2014 04:49:37 +0000 (00:49 -0400)]
check for correct versions in package.json and bower.json

9 years agovalid JSON for bower.json
Dan Vanderkam [Tue, 21 Oct 2014 00:28:50 +0000 (20:28 -0400)]
valid JSON for bower.json

9 years agoAttempt to create a working bower package
Dan Vanderkam [Tue, 21 Oct 2014 00:18:18 +0000 (20:18 -0400)]
Attempt to create a working bower package

9 years agoPoint to the new issue tracker
Dan Vanderkam [Tue, 21 Oct 2014 00:07:37 +0000 (20:07 -0400)]
Point to the new issue tracker

9 years agoMerge pull request #315 from flooey/setselection
Dan Vanderkam [Tue, 14 Oct 2014 20:45:41 +0000 (16:45 -0400)]
Merge pull request #315 from flooey/setselection

Make setSelection() work with missing points.

9 years agoAdd a fast-path setSelection() if the points are in the expected place.
Adam Vartanian [Tue, 14 Oct 2014 20:24:42 +0000 (16:24 -0400)]
Add a fast-path setSelection() if the points are in the expected place.

In most cases, the appropriate index will contain the point that should
be selected, so check that and use that point if so.  Otherwise, search
for a matching point.

Also add a test that tests the case where the appropriate index doesn't
contain the point we're looking for.

9 years agoMake setSelection() work with missing points.
Adam Vartanian [Mon, 13 Oct 2014 16:35:36 +0000 (12:35 -0400)]
Make setSelection() work with missing points.

If the points array is missing points, for instance because the data
handler omitted them, setSelection() will now still properly find
the points that are being selected by looking at the points' idx
property instead of just indexing into the points array.

9 years agoMerge pull request #310 from hulkholden/license
Robert Konigsberg [Fri, 29 Aug 2014 18:49:39 +0000 (14:49 -0400)]
Merge pull request #310 from hulkholden/license

Add missing license text to dygraph-externs.js and dygraph-types.js

9 years agoAdd missing license text to dygraph-externs.js and dygraph-types.js
Paul Holden [Fri, 29 Aug 2014 18:43:27 +0000 (14:43 -0400)]
Add missing license text to dygraph-externs.js and dygraph-types.js

9 years agoMerge pull request #309 from hulkholden/hidpi
Robert Konigsberg [Mon, 25 Aug 2014 02:04:33 +0000 (22:04 -0400)]
Merge pull request #309 from hulkholden/hidpi

Update the hidpi test to work on a wider variety of platforms

9 years agoUpdate the hidpi test to work on a wider variety of platforms (e.g. when running...
Paul Holden [Mon, 25 Aug 2014 01:58:19 +0000 (21:58 -0400)]
Update the hidpi test to work on a wider variety of platforms (e.g. when running the tests via `java -jar ./auto_tests/lib/JsTestDriver-1.3.3c.jar --tests all`)

9 years agoMerge pull request #308 from yankee42/fixXmlEntities
Dan Vanderkam [Thu, 21 Aug 2014 13:51:43 +0000 (09:51 -0400)]
Merge pull request #308 from yankee42/fixXmlEntities

Replace ' ' with ' ', so that the legend works in XHTML pages

9 years agoReplace ' ' with ' ', so that the legend works in XHTML pages as well
yankee [Wed, 20 Aug 2014 14:09:10 +0000 (16:09 +0200)]
Replace ' ' with ' ', so that the legend works in XHTML pages as well

9 years agoMerge pull request #303 from danvk/fix-hidpi
Dan Vanderkam [Mon, 7 Jul 2014 18:11:00 +0000 (14:11 -0400)]
Merge pull request #303 from danvk/fix-hidpi

Fix HiDPI over-scrolling issue

9 years agoMerge pull request #305 from brentwalther/master
Dan Vanderkam [Mon, 7 Jul 2014 18:10:30 +0000 (14:10 -0400)]
Merge pull request #305 from brentwalther/master

Add panning functions to dygraph-externs and PointType to dygraph-types

9 years agoAdd Dygraph.PointType to dygraph-types
Brent Walther [Tue, 1 Jul 2014 22:57:17 +0000 (15:57 -0700)]
Add Dygraph.PointType to dygraph-types

Add the Dygraph.PointType type to the dygraph-types externs file. This type is used when defining a clickCallback function and must be defined in order to satisfy the Google Closure compiler.

9 years agoAdd panning interaction model functions to dygraph-externs
Brent Walther [Tue, 1 Jul 2014 15:49:30 +0000 (08:49 -0700)]
Add panning interaction model functions to dygraph-externs

Add the startPan(), movePan(), and endPan() functions to the externs file. These functions are commonly used when defining custom interaction models and must be defined in order to satisfy the closure compiler.

9 years agoturn off warnings in uglifyjs
Dan Vanderkam [Wed, 25 Jun 2014 16:40:34 +0000 (12:40 -0400)]
turn off warnings in uglifyjs

9 years agocompress with UglifyJS -- ~6k savings
Dan Vanderkam [Wed, 25 Jun 2014 15:07:44 +0000 (11:07 -0400)]
compress with UglifyJS -- ~6k savings

9 years agoBug fix for horizontal scrolling on hidpi devices fix-hidpi
Dan Vanderkam [Wed, 25 Jun 2014 04:09:53 +0000 (00:09 -0400)]
Bug fix for horizontal scrolling on hidpi devices

9 years agoignore env
Dan Vanderkam [Wed, 25 Jun 2014 04:08:22 +0000 (00:08 -0400)]
ignore env

9 years agoUse closure compiler from NPM
Dan Vanderkam [Tue, 24 Jun 2014 03:57:25 +0000 (23:57 -0400)]
Use closure compiler from NPM

9 years agomake publish works
Dan Vanderkam [Mon, 23 Jun 2014 23:11:04 +0000 (19:11 -0400)]
make publish works

9 years agomake publish
Dan Vanderkam [Mon, 23 Jun 2014 22:55:11 +0000 (18:55 -0400)]
make publish

9 years agoMake test.sh return an error code on failure.
Dan Vanderkam [Sat, 14 Jun 2014 02:22:19 +0000 (22:22 -0400)]
Make test.sh return an error code on failure.

9 years agoMerge branch 'master' of github.com:danvk/dygraphs
Dan Vanderkam [Sat, 14 Jun 2014 02:02:13 +0000 (22:02 -0400)]
Merge branch 'master' of github.com:danvk/dygraphs

9 years agoFirst attempt at Travis CI testing
Dan Vanderkam [Sat, 14 Jun 2014 02:01:51 +0000 (22:01 -0400)]
First attempt at Travis CI testing

9 years agoMerge pull request #301 from BoivinBenoit/master
Dan Vanderkam [Thu, 12 Jun 2014 22:48:22 +0000 (18:48 -0400)]
Merge pull request #301 from BoivinBenoit/master

Fixing fillGraph when null values and stepPlot

9 years agoReverted dygraph-combined.js
Boivin Benoit [Thu, 12 Jun 2014 07:09:14 +0000 (09:09 +0200)]
Reverted dygraph-combined.js
Changed fill_step_plot.js

9 years agoNow considering the issue as a bug, adding an auto_test (might be wrong)
Boivin Benoit [Wed, 11 Jun 2014 13:27:05 +0000 (15:27 +0200)]
Now considering the issue as a bug, adding an auto_test (might be wrong)

10 years agoRemoved disabled ticker test suite (no longer needed).
Joan Pau Beltran [Thu, 5 Jun 2014 15:40:30 +0000 (17:40 +0200)]
Removed disabled ticker test suite (no longer needed).

The tickers test suite is disabled. In addition, most tests there are broken.
Date ticker tests are fixed and moved to a separated date ticker test suite
by last commit. Hence move numeric ticker tests to the numeric ticker
test-suite and remove the disabled tickers test-suite.

  * `auto_tests/tests/numeric_ticker.js`:
    Include tests from `auto_tests/tests/tickers.disabled-js`
    but commented because they are all broken.

  * auto_tests/tests/tickers.disabled-js:
    Delete it because it is no longer needed.

10 years agoAdded automated test for UTC date ticks and labels.
Joan Pau Beltran [Mon, 2 Jun 2014 15:50:45 +0000 (17:50 +0200)]
Added automated test for UTC date ticks and labels.

The date tick tests are broken in the ticker automatic test suite
because they assume EST timezone. In addition, the suite is disabled.
Fix the  automatic test suite for the case UTC ticks and labels:

  * `auto_tests/tests/date_ticker.js`:
    Test the generation of ticks and labels at nice time positions
    according to UTC as set by option `labelsDateUTC`.
    Include the date axis tests from `auto-tests/tests/tickers.js-disabled`
    with the required changes of timestamps and with initial ticks
    out of range removed.

10 years agoAdded UTC date label tests and adapted existing ones.
Joan Pau Beltran [Mon, 10 Feb 2014 11:11:24 +0000 (12:11 +0100)]
Added UTC date label tests and adapted existing ones.

    * tests/labelsDateUTC.html:
      New test/demo for the option  `labelsDateUTC`.
      Display several days of data according to UTC and to local time,
      and compare the tick placement and the label format.

    * tests/x-axis-formatter.html:
      Added `opts` argument to `axisLabelFormatter` function
      (used by inner `Dygraphs.dateAxisLabelFormatter` call).

10 years agoInsignificant fix of `>` in jsdoc comments.
Joan Pau Beltran [Thu, 5 Jun 2014 15:59:57 +0000 (17:59 +0200)]
Insignificant fix of `>` in jsdoc comments.

10 years agoFormat year of monthly tick lables with 2 digits instead of 4.
Joan Pau Beltran [Thu, 5 Jun 2014 15:46:27 +0000 (17:46 +0200)]
Format year of monthly tick lables with 2 digits instead of 4.

Since commit 7b2dfd0 (Oct 15, 2013) the format of monthly tick
labels is `%b %Y` (e.g. Oct 2013). Before the format was '%b %y'
(e.g. Oct 13). Revert to the later format because it seems to be
an accidental change.

  * `dygraph.js`:
    Revert format of monthly tick labels from `%b %Y` to `%b %y`.

10 years agoFixed option support
Boivin Benoit [Thu, 5 Jun 2014 14:46:41 +0000 (16:46 +0200)]
Fixed option support

10 years agoAdded new fillStepPlot option for dygraph
Benoit Boivin [Thu, 5 Jun 2014 12:02:04 +0000 (14:02 +0200)]
Added new fillStepPlot option for dygraph

10 years agoMerge pull request #296 from danvk/xlog
Robert Konigsberg [Thu, 29 May 2014 10:00:29 +0000 (06:00 -0400)]
Merge pull request #296 from danvk/xlog

Log along the x-axis (bug 189)

10 years agoMind renaming. xlog
Robert Konigsberg [Mon, 12 May 2014 08:44:07 +0000 (04:44 -0400)]
Mind renaming.

10 years agoMerge pull request #297 from pshevtsov/custom-shapes
Robert Konigsberg [Mon, 28 Apr 2014 12:23:12 +0000 (08:23 -0400)]
Merge pull request #297 from pshevtsov/custom-shapes

Execute custom shapes closure. Makes tests/custom-circles.html work.

10 years agoExecute custom shapes closure
Petr Shevtsov [Mon, 28 Apr 2014 09:26:00 +0000 (13:26 +0400)]
Execute custom shapes closure

10 years agodingle quotes.
Robert Konigsberg [Wed, 23 Apr 2014 14:58:09 +0000 (10:58 -0400)]
dingle quotes.

10 years agoMerge branch 'master' into xlog
Robert Konigsberg [Wed, 23 Apr 2014 12:47:08 +0000 (08:47 -0400)]
Merge branch 'master' into xlog

Conflicts:
dygraph-layout.js

10 years agox axis log scale.
Robert Konigsberg [Wed, 23 Apr 2014 12:42:58 +0000 (08:42 -0400)]
x axis log scale.

10 years agotemporarily remove failing test
Dan Vanderkam [Tue, 18 Mar 2014 17:44:37 +0000 (13:44 -0400)]
temporarily remove failing test

10 years agofix SO links
Dan Vanderkam [Thu, 6 Mar 2014 04:21:43 +0000 (23:21 -0500)]
fix SO links

10 years agoMerge pull request #266 from hulkholden/fix_hidpi
Dan Vanderkam [Sun, 2 Mar 2014 02:40:56 +0000 (21:40 -0500)]
Merge pull request #266 from hulkholden/fix_hidpi

Add support for HiDPI displays

10 years agoMerge pull request #294 from klausw-g/highlightpointcallback
Dan Vanderkam [Fri, 21 Feb 2014 03:29:19 +0000 (22:29 -0500)]
Merge pull request #294 from klausw-g/highlightpointcallback

Fix bad 'g' argument for drawHighlightPointCallback.

10 years agoFix bad 'g' argument for drawHighlightPointCallback.
Klaus Weidner [Fri, 21 Feb 2014 03:25:09 +0000 (19:25 -0800)]
Fix bad 'g' argument for drawHighlightPointCallback.

10 years agomerge
Dan Vanderkam [Mon, 17 Feb 2014 22:38:41 +0000 (17:38 -0500)]
merge

10 years agoadd test of plugins/legend.js
Akiyah [Mon, 17 Feb 2014 17:14:49 +0000 (02:14 +0900)]
add test of plugins/legend.js

10 years agoadd test of plugins/legend.js
Akiyah [Mon, 17 Feb 2014 16:58:00 +0000 (01:58 +0900)]
add test of plugins/legend.js

10 years agoMerge pull request #293 from gmadrid/master
Dan Vanderkam [Thu, 13 Feb 2014 20:18:28 +0000 (15:18 -0500)]
Merge pull request #293 from gmadrid/master

Fix for ticks when years are < 100.

10 years agoChanging test file name in local.html
George Madrid [Mon, 10 Feb 2014 16:01:06 +0000 (11:01 -0500)]
Changing test file name in local.html

10 years agoResponding to Dan's feedback.
George Madrid [Mon, 10 Feb 2014 15:33:41 +0000 (10:33 -0500)]
Responding to Dan's feedback.

10 years agoAdded support for option `labelsDateUTC` to the date tick picker.
Joan Pau Beltran [Fri, 31 Jan 2014 13:08:13 +0000 (14:08 +0100)]
Added support for option `labelsDateUTC` to the date tick picker.

    * dygraph-tickers.js:
      simplified date tick generation. `Dygraph.getDateAxis`
      now produces nice ticks both in UTC and local time.

    * dygraph-utils.js:
      removed `Dygraph.dateSetters` and `Dygraph.setDateSameTZ`
      because they are not needed any more.

10 years agoFix for ticks when years are < 100.
George Madrid [Fri, 7 Feb 2014 19:05:25 +0000 (14:05 -0500)]
Fix for ticks when years are < 100.

10 years agoAdded support for UTC date time labels.
Joan Pau Beltran [Wed, 22 Jan 2014 12:55:51 +0000 (13:55 +0100)]
Added support for UTC date time labels.

  * dygraph-utils.js:
    new utc switch parameter for `Dygraph.dateString_`
    and new signature for `Dygraph.hhmmss_`.

  * dygraph.js:
    support for UTC date time labels in date formatter.
    Also rename it to `dateAxisLabelFormatter`  for homogeneity
    with the numeric one. and add  a `dateValueFormatter`.

  * dygraph-options-reference.js:
    new `labelsDateUTC` option.

10 years agofix XSS in labels
Akiyah [Sat, 4 Jan 2014 17:07:25 +0000 (02:07 +0900)]
fix XSS in labels

10 years agoadd semicollon
Akiyah [Sat, 4 Jan 2014 17:19:03 +0000 (02:19 +0900)]
add semicollon

10 years agofix XSS in labels
Akiyah [Sat, 4 Jan 2014 17:07:25 +0000 (02:07 +0900)]
fix XSS in labels

10 years agofix additional lint errors
Dan Vanderkam [Sat, 14 Dec 2013 18:52:33 +0000 (13:52 -0500)]
fix additional lint errors

10 years agoMerge branch 'master' of github.com:danvk/dygraphs
Dan Vanderkam [Sat, 14 Dec 2013 18:20:12 +0000 (13:20 -0500)]
Merge branch 'master' of github.com:danvk/dygraphs

10 years agoFix lint errors in gallery and add its JS files to lint.sh
Dan Vanderkam [Fri, 13 Dec 2013 22:09:15 +0000 (17:09 -0500)]
Fix lint errors in gallery and add its JS files to lint.sh

10 years agoMerge pull request #286 from shawno1059/master
Dan Vanderkam [Fri, 13 Dec 2013 21:21:05 +0000 (13:21 -0800)]
Merge pull request #286 from shawno1059/master

Speed up renerding of stacked graph when stackedGraphNaNFill = 'none'

10 years agoFormatting change.
Shawn [Tue, 26 Nov 2013 16:30:39 +0000 (08:30 -0800)]
Formatting change.

10 years agoSpeed up renerding of stacked graph by avoiding the loop in
Shawn [Mon, 25 Nov 2013 21:59:47 +0000 (13:59 -0800)]
Speed up renerding of stacked graph by avoiding the loop in
updateNextPoint(), when stackedGraphNaNFill = 'none'.

10 years agoMerge pull request #284 from klausw-g/issue-466-regression-test
Dan Vanderkam [Tue, 29 Oct 2013 17:51:38 +0000 (10:51 -0700)]
Merge pull request #284 from klausw-g/issue-466-regression-test

add regression test for NaN handling in errorbar mode.

10 years agoadd regression test for NaN handling in errorbar mode.
Klaus Weidner [Tue, 29 Oct 2013 17:01:20 +0000 (10:01 -0700)]
add regression test for NaN handling in errorbar mode.

See https://code.google.com/p/dygraphs/issues/detail?id=466 .

The reported issue was that NaN values were unexpectedly being
drawn as connected in customBar=true mode. This already
works correctly in current Dygraphs, I've converted the jsfiddle
demonstrating the issue to a regression test.

10 years agoFix some closure issues; down to 87 warnings
Dan Vanderkam [Sun, 27 Oct 2013 04:56:08 +0000 (23:56 -0500)]
Fix some closure issues; down to 87 warnings

10 years agolint cleanup
Dan Vanderkam [Sat, 26 Oct 2013 23:56:54 +0000 (18:56 -0500)]
lint cleanup

10 years agocleanup
Dan Vanderkam [Sat, 26 Oct 2013 23:54:41 +0000 (18:54 -0500)]
cleanup

10 years agocleanup
Dan Vanderkam [Sat, 26 Oct 2013 23:53:58 +0000 (18:53 -0500)]
cleanup

10 years agoMerge branch 'master' into range-selector-repair
Dan Vanderkam [Sat, 26 Oct 2013 23:50:33 +0000 (18:50 -0500)]
Merge branch 'master' into range-selector-repair

10 years agorange selector tests pass
Dan Vanderkam [Sat, 26 Oct 2013 23:49:20 +0000 (18:49 -0500)]
range selector tests pass

10 years agoalmost passing!
Dan Vanderkam [Sat, 26 Oct 2013 23:46:48 +0000 (18:46 -0500)]
almost passing!

10 years agomerge
Dan Vanderkam [Sat, 26 Oct 2013 22:24:54 +0000 (17:24 -0500)]
merge

10 years agoUpdate dygraph-externs to better reflect the public API (thanks mcantos)
Dan Vanderkam [Sat, 26 Oct 2013 19:09:06 +0000 (14:09 -0500)]
Update dygraph-externs to better reflect the public API (thanks mcantos)

10 years agomisc fixes
Dan Vanderkam [Fri, 25 Oct 2013 20:02:22 +0000 (15:02 -0500)]
misc fixes

10 years agoFix some basic Closure type annotation mistakes
Dan Vanderkam [Thu, 24 Oct 2013 04:36:30 +0000 (23:36 -0500)]
Fix some basic Closure type annotation mistakes

10 years agoMerge pull request #283 from danvk/smf+compile
Dan Vanderkam [Thu, 24 Oct 2013 03:24:01 +0000 (20:24 -0700)]
Merge pull request #283 from danvk/smf+compile

Add a "compile with closure" script

10 years agobetter script smf+compile
Dan Vanderkam [Thu, 24 Oct 2013 03:21:32 +0000 (22:21 -0500)]
better script

10 years agocheck that compile script runs
Dan Vanderkam [Wed, 23 Oct 2013 18:11:06 +0000 (13:11 -0500)]
check that compile script runs

10 years agocomments & cleanup
Dan Vanderkam [Wed, 23 Oct 2013 18:09:15 +0000 (13:09 -0500)]
comments & cleanup