dygraphs.git
13 years agoRemoving unnecessary HTML from per-series.
Robert Konigsberg [Thu, 24 Mar 2011 14:59:28 +0000 (10:59 -0400)]
Removing unnecessary HTML from per-series.

13 years agoClean up perf.html for readability.
Robert Konigsberg [Thu, 24 Mar 2011 14:36:26 +0000 (10:36 -0400)]
Clean up perf.html for readability.

13 years agoUpdate documentation, include anchors for each option.
Robert Konigsberg [Mon, 14 Mar 2011 16:50:07 +0000 (12:50 -0400)]
Update documentation, include anchors for each option.

13 years agoFix typo in logscale option documentation.
Robert Konigsberg [Mon, 14 Mar 2011 16:30:57 +0000 (12:30 -0400)]
Fix typo in logscale option documentation.

13 years agodocument annotation callbacks
Dan Vanderkam [Mon, 14 Mar 2011 04:17:13 +0000 (00:17 -0400)]
document annotation callbacks

13 years agoempty docs for two more optoins
Dan Vanderkam [Mon, 14 Mar 2011 04:06:13 +0000 (00:06 -0400)]
empty docs for two more optoins

13 years agopy -> sh
Dan Vanderkam [Mon, 14 Mar 2011 04:01:33 +0000 (00:01 -0400)]
py -> sh

13 years agogenerate docs in push-to-web checked_reference
Dan Vanderkam [Mon, 14 Mar 2011 03:48:02 +0000 (23:48 -0400)]
generate docs in push-to-web

13 years agoupdate compressed size
Dan Vanderkam [Mon, 14 Mar 2011 03:45:01 +0000 (23:45 -0400)]
update compressed size

13 years agoremove old options reference
Dan Vanderkam [Mon, 14 Mar 2011 03:43:50 +0000 (23:43 -0400)]
remove old options reference

13 years agoadd categories
Dan Vanderkam [Sun, 13 Mar 2011 20:50:47 +0000 (16:50 -0400)]
add categories

13 years agomore comments
Dan Vanderkam [Sun, 13 Mar 2011 19:40:33 +0000 (15:40 -0400)]
more comments

13 years agoscript for generating HTML docs
Dan Vanderkam [Sun, 13 Mar 2011 19:37:07 +0000 (15:37 -0400)]
script for generating HTML docs

13 years agoadjust slightly for JSON parsing; add comment about JSON
Dan Vanderkam [Sun, 13 Mar 2011 19:36:55 +0000 (15:36 -0400)]
adjust slightly for JSON parsing; add comment about JSON

13 years agomake the options reference into valid JSON
Dan Vanderkam [Fri, 11 Mar 2011 22:37:00 +0000 (17:37 -0500)]
make the options reference into valid JSON

13 years agostrip options reference from combined
Dan Vanderkam [Fri, 11 Mar 2011 22:19:55 +0000 (17:19 -0500)]
strip options reference from combined

13 years agoinstitute really draconian options documentation requirements
Dan Vanderkam [Fri, 11 Mar 2011 06:30:30 +0000 (01:30 -0500)]
institute really draconian options documentation requirements

13 years agoadd docs for "legend" option
Dan Vanderkam [Thu, 10 Mar 2011 05:59:50 +0000 (00:59 -0500)]
add docs for "legend" option

13 years agoadd "legend" option and an example of its usage.
Dan Vanderkam [Thu, 10 Mar 2011 05:56:00 +0000 (00:56 -0500)]
add "legend" option and an example of its usage.

13 years agofactor out logic for generating the html legend
Dan Vanderkam [Tue, 8 Mar 2011 21:20:40 +0000 (16:20 -0500)]
factor out logic for generating the html legend

13 years agomore warnings on CSV parsing
Dan Vanderkam [Thu, 3 Mar 2011 05:32:36 +0000 (23:32 -0600)]
more warnings on CSV parsing

13 years agorecord Dygraph in independent-series.html
Dan Vanderkam [Thu, 3 Mar 2011 01:09:08 +0000 (19:09 -0600)]
record Dygraph in independent-series.html

13 years agoparse "NaN" as NaN, not null. Log descriptive errors on bad values
Dan Vanderkam [Thu, 3 Mar 2011 01:08:50 +0000 (19:08 -0600)]
parse "NaN" as NaN, not null. Log descriptive errors on bad values

13 years agoA warning and better default behavior when labels option and CSV labels are both...
Dan Vanderkam [Thu, 3 Mar 2011 00:37:35 +0000 (19:37 -0500)]
A warning and better default behavior when labels option and CSV labels are both present

13 years agofix bug (I think) introduced by 6faebb69
Dan Vanderkam [Thu, 3 Mar 2011 00:22:48 +0000 (19:22 -0500)]
fix bug (I think) introduced by 6faebb69

13 years agocsv format does not work
Dan Vanderkam [Wed, 2 Mar 2011 23:37:41 +0000 (18:37 -0500)]
csv format does not work

13 years agodemonstration of independent series w/ NaN
Dan Vanderkam [Wed, 2 Mar 2011 23:26:47 +0000 (18:26 -0500)]
demonstration of independent series w/ NaN

13 years agominor tweaks to jeremy's change
Dan Vanderkam [Wed, 23 Feb 2011 21:47:49 +0000 (16:47 -0500)]
minor tweaks to jeremy's change

13 years agoMerge branch 'master' of https://github.com/danvk/dygraphs
Jeremy Brewer [Wed, 23 Feb 2011 16:38:14 +0000 (11:38 -0500)]
Merge branch 'master' of https://github.com/danvk/dygraphs

Conflicts:
dygraph.js

13 years agoFixes from merging repo for two-axes.html and logscale.html.
Jeremy Brewer [Wed, 23 Feb 2011 16:34:44 +0000 (11:34 -0500)]
Fixes from merging repo for two-axes.html and logscale.html.

13 years agofix issue 124
Dan Vanderkam [Mon, 21 Feb 2011 15:31:23 +0000 (10:31 -0500)]
fix issue 124

13 years agoSmall fixes from the last merge update.
Jeremy Brewer [Fri, 18 Feb 2011 16:20:51 +0000 (11:20 -0500)]
Small fixes from the last merge update.

13 years agoFix bug w/ annotations and raw format
Dan Vanderkam [Tue, 15 Feb 2011 04:10:33 +0000 (23:10 -0500)]
Fix bug w/ annotations and raw format

13 years agoMerge branch 'master' of github.com:danvk/dygraphs
Dan Vanderkam [Thu, 10 Feb 2011 02:41:21 +0000 (21:41 -0500)]
Merge branch 'master' of github.com:danvk/dygraphs

13 years agoUpdate tests to ensure values == 0 are ignored and don't disrupt showing in log scale...
Robert Konigsberg [Fri, 4 Feb 2011 23:10:26 +0000 (18:10 -0500)]
Update tests to ensure values == 0 are ignored and don't disrupt showing in log scale graphs.

13 years agoCan't include points on the log scale when the values are zero. How was this missed?
Robert Konigsberg [Fri, 4 Feb 2011 23:09:02 +0000 (18:09 -0500)]
Can't include points on the log scale when the values are zero. How was this missed?

13 years agoTurns out that I had to also check for infinity, which happens when
Robert Konigsberg [Fri, 4 Feb 2011 22:28:59 +0000 (17:28 -0500)]
Turns out that I had to also check for infinity, which happens when
minYval is 0. Fixed that, plus, only set those values when it's log
scale. Also fancied up the console message.

13 years agoAdd toString function to dygraph instances. Doesn't work with graphs on divs without...
Robert Konigsberg [Fri, 4 Feb 2011 22:27:56 +0000 (17:27 -0500)]
Add toString function to dygraph instances. Doesn't work with graphs on divs without ids -- ever thought of adding a "name" attribute to support many graphs on a page?

13 years agoMerge branch 'master' of https://github.com/danvk/dygraphs
Jeremy Brewer [Fri, 4 Feb 2011 21:50:21 +0000 (16:50 -0500)]
Merge branch 'master' of https://github.com/danvk/dygraphs

Conflicts:
dygraph.js

13 years ago* Altered formatting to use the shorter of floatFormat() or intFormat(). This
Jeremy Brewer [Fri, 4 Feb 2011 21:15:43 +0000 (16:15 -0500)]
* Altered formatting to use the shorter of floatFormat() or intFormat().  This
  seems to fix all of the known formatting problems.

13 years agoUndo change to logscale test.
Robert Konigsberg [Fri, 4 Feb 2011 20:43:54 +0000 (15:43 -0500)]
Undo change to logscale test.

13 years agoAdd error when computing axis scales that just won't display because of an invalid...
Robert Konigsberg [Fri, 4 Feb 2011 20:38:01 +0000 (15:38 -0500)]
Add error when computing axis scales that just won't display because of an invalid range.

13 years agofix bug 92
Dan Vanderkam [Thu, 3 Feb 2011 23:03:44 +0000 (18:03 -0500)]
fix bug 92

13 years agoMerge branch 'master' of https://github.com/flooey/dygraphs
Dan Vanderkam [Wed, 2 Feb 2011 23:25:15 +0000 (18:25 -0500)]
Merge branch 'master' of https://github.com/flooey/dygraphs

13 years agoRemove code that clamps horizontal hover to the final point. I don't think
Adam Vartanian [Tue, 1 Feb 2011 18:53:32 +0000 (13:53 -0500)]
Remove code that clamps horizontal hover to the final point.  I don't think
these do anything; all tests continue to work fine.  This makes it so that
if you have two lines, the first of which continues later than the second,
hovering will work for the first line at points later than the second
ends.

Modify connect-separated test to have nulls at end of final dataset,
to show the bug fix works.

13 years agoTest file tweak.
Robert Konigsberg [Mon, 31 Jan 2011 22:09:11 +0000 (17:09 -0500)]
Test file tweak.

13 years agoAdd entry for logscale tests in index.html test listing.
Robert Konigsberg [Mon, 31 Jan 2011 18:09:33 +0000 (13:09 -0500)]
Add entry for logscale tests in index.html test listing.

13 years agoAdd brief docs to index.html about logscale.
Robert Konigsberg [Mon, 31 Jan 2011 18:07:39 +0000 (13:07 -0500)]
Add brief docs to index.html about logscale.

13 years agoMerging the two demos, and cleaned it up a little bit.
Robert Konigsberg [Mon, 31 Jan 2011 17:07:31 +0000 (12:07 -0500)]
Merging the two demos, and cleaned it up a little bit.

13 years agominor cleanup
Dan Vanderkam [Mon, 31 Jan 2011 16:11:27 +0000 (11:11 -0500)]
minor cleanup

13 years agoadd stock log-scale demo
Dan Vanderkam [Mon, 31 Jan 2011 16:08:02 +0000 (11:08 -0500)]
add stock log-scale demo

13 years ago10 -> Dygraph.LOG_SCALE
Dan Vanderkam [Mon, 31 Jan 2011 15:56:35 +0000 (10:56 -0500)]
10 -> Dygraph.LOG_SCALE

13 years agoadd comment to PREFERRED_LOG_TICK_VALUES
Dan Vanderkam [Mon, 31 Jan 2011 15:55:05 +0000 (10:55 -0500)]
add comment to PREFERRED_LOG_TICK_VALUES

13 years agomerge in kberg's changes
Dan Vanderkam [Mon, 31 Jan 2011 15:42:47 +0000 (10:42 -0500)]
merge in kberg's changes

13 years agolog scale is no longer a "work in progress". :)
Robert Konigsberg [Sat, 29 Jan 2011 19:50:53 +0000 (14:50 -0500)]
log scale is no longer a "work in progress". :)

13 years agoLog scale panning. I'm feeling really good about just how damn well this lined up...
Robert Konigsberg [Sat, 29 Jan 2011 19:43:49 +0000 (14:43 -0500)]
Log scale panning. I'm feeling really good about just how damn well this lined up with linear panning.

13 years agopadding
Dan Vanderkam [Sat, 29 Jan 2011 17:45:11 +0000 (12:45 -0500)]
padding

13 years agoZooming in log scale has been fixed, toDataCoordY was basically broken.
Robert Konigsberg [Sat, 29 Jan 2011 17:14:45 +0000 (12:14 -0500)]
Zooming in log scale has been fixed, toDataCoordY was basically broken.

13 years agoupdate gadget, add screenshot
Dan Vanderkam [Sat, 29 Jan 2011 17:09:06 +0000 (12:09 -0500)]
update gadget, add screenshot

13 years agoImprovement of representing scaling -- now it respects pixelsPerTick.
Robert Konigsberg [Fri, 28 Jan 2011 23:02:39 +0000 (18:02 -0500)]
Improvement of representing scaling -- now it respects pixelsPerTick.

13 years agoAdding an axis id to the y axes.
Robert Konigsberg [Fri, 28 Jan 2011 22:08:02 +0000 (17:08 -0500)]
Adding an axis id to the y axes.

This will be necessary for generating tick marks, since it doesn't take an axis number, it just takes the props themselves.

13 years agoMerge https://github.com/danvk/dygraphs into logscale
Robert Konigsberg [Fri, 28 Jan 2011 21:37:48 +0000 (16:37 -0500)]
Merge https://github.com/danvk/dygraphs into logscale

Conflicts:
dygraph.js

13 years agoFirst step to better log scale tick calculation -- introduce binary search for more...
Robert Konigsberg [Fri, 28 Jan 2011 21:35:02 +0000 (16:35 -0500)]
First step to better log scale tick calculation -- introduce binary search for more comprenensible code. There's more to do unfortunately, but that will be done in another branch.

13 years agoRemoved superluous array.
Robert Konigsberg [Fri, 28 Jan 2011 20:31:50 +0000 (15:31 -0500)]
Removed superluous array.

13 years agoMuch better algorithm for computing log scale ticks.
Robert Konigsberg [Fri, 28 Jan 2011 19:59:51 +0000 (14:59 -0500)]
Much better algorithm for computing log scale ticks.

13 years agoMore correct tickmarks for logs. They don't look as pretty but they respect the numbe...
Robert Konigsberg [Fri, 28 Jan 2011 15:54:45 +0000 (10:54 -0500)]
More correct tickmarks for logs. They don't look as pretty but they respect the number of tickmarks requested.

13 years agocomment update.
Robert Konigsberg [Thu, 27 Jan 2011 22:57:00 +0000 (17:57 -0500)]
comment update.

13 years agoLog scale graphs no longer show points with values less than zero.
Robert Konigsberg [Thu, 27 Jan 2011 22:56:20 +0000 (17:56 -0500)]
Log scale graphs no longer show points with values less than zero.

13 years agoDidn't realize that the numeric tick function was used for x axes.
Robert Konigsberg [Thu, 27 Jan 2011 20:01:42 +0000 (15:01 -0500)]
Didn't realize that the numeric tick function was used for x axes.

By having to address that, though, I see now that I've managed to make
the log scaling axis-specific. At least I hope -- a test that shows two
axes, each with its own log scale, would be kind of nice.

13 years agoRemove local variable that is no longer used.
Robert Konigsberg [Thu, 27 Jan 2011 17:23:01 +0000 (12:23 -0500)]
Remove local variable that is no longer used.

13 years agoFix for issue 112: off-by-one issues with panning.
Robert Konigsberg [Thu, 27 Jan 2011 17:12:00 +0000 (12:12 -0500)]
Fix for issue 112: off-by-one issues with panning.

This also fixes an annoying problem with y-axis panning where the closer
to the bottom a pan operation, the more severe an initial jagging occurs
along the y-axis.

The keys to this fix are a) an off-by-one error related to computing
widths and heights, and b) the use of the plotter area's dimensions
rather than the graph's dimensions (graph dimensions also account for
spaces for the tick marks and annotations; that doesn't help us very
well.)

13 years agoFirst round of fixes of log scaling based on code review from danvk.
Robert Konigsberg [Tue, 25 Jan 2011 23:49:29 +0000 (18:49 -0500)]
First round of fixes of log scaling based on code review from danvk.

13 years agoRemove superfluous console.log
Robert Konigsberg [Tue, 25 Jan 2011 17:55:03 +0000 (12:55 -0500)]
Remove superfluous console.log

13 years agoGah, another piece of code missing. Fixed.
Robert Konigsberg [Tue, 25 Jan 2011 17:23:38 +0000 (12:23 -0500)]
Gah, another piece of code missing. Fixed.

13 years agoBug because I forgot a 'this' and also two comment tweaks.
Robert Konigsberg [Tue, 25 Jan 2011 16:59:01 +0000 (11:59 -0500)]
Bug because I forgot a 'this' and also two comment tweaks.

13 years agoClean up variable name and restore comment.
Robert Konigsberg [Thu, 13 Jan 2011 01:38:12 +0000 (17:38 -0800)]
Clean up variable name and restore comment.

13 years agoMerge github.com:kberg/dygraphs into logscale
Robert Konigsberg [Wed, 12 Jan 2011 23:04:18 +0000 (15:04 -0800)]
Merge github.com:kberg/dygraphs into logscale

13 years agofile-level comment in interaction.js
Robert Konigsberg [Wed, 12 Jan 2011 18:12:55 +0000 (10:12 -0800)]
file-level comment in interaction.js

13 years agoSwapping the smart scroll awareness for a dumber, better, one.
Robert Konigsberg [Wed, 12 Jan 2011 18:10:05 +0000 (10:10 -0800)]
Swapping the smart scroll awareness for a dumber, better, one.

13 years agoFix major bug introduced by my significant figures change.
Jeremy Brewer [Mon, 10 Jan 2011 18:25:57 +0000 (13:25 -0500)]
Fix major bug introduced by my significant figures change.

* Fix bug in addXTicks_() for non-numeric data.
* Rename defaultFormat to floatFormat and add intFormat function.  Update the
  test to use the new names.
* Small 80-char formatting fix.

13 years agoManual fix of merge issues. Somehow git clobbered some but not all of my
Jeremy Brewer [Fri, 7 Jan 2011 20:40:06 +0000 (15:40 -0500)]
Manual fix of merge issues.  Somehow git clobbered some but not all of my
changes when pulling from the main dygraphs repo, making a revert or diff
between commits difficult.  So I manually fixed the changes.  Ugh.

13 years agoCleanup of previous commit which included some extraneous lefovers from
Jeremy Brewer [Fri, 7 Jan 2011 17:40:55 +0000 (12:40 -0500)]
Cleanup of previous commit which included some extraneous lefovers from
the merge.

* Implement %g like formatting in JavaScript.
* Implement related tests for floating point formatting.

13 years agoMerge branch 'master' of https://github.com/danvk/dygraphs
Jeremy Brewer [Fri, 7 Jan 2011 17:14:30 +0000 (12:14 -0500)]
Merge branch 'master' of https://github.com/danvk/dygraphs

Conflicts:
dygraph.js
tests/significant-figures.html

13 years agoConverted log scaled graphs from log(e) to log(10)
Robert Konigsberg [Tue, 4 Jan 2011 16:00:50 +0000 (11:00 -0500)]
Converted log scaled graphs from log(e) to log(10)

13 years agoLog scale support. Here's what currently works:
Robert Konigsberg [Thu, 30 Dec 2010 07:20:44 +0000 (23:20 -0800)]
Log scale support. Here's what currently works:

* Drawing to scale
* Drawing axes ticks to scale
* Zooming to scale

This required spltting out lots of functions, and encouraging the split
of toDomCoords, toDataCoords, also introduced toDomYPercentage.

Panning along the y axis seems to not work but I'm committing.

13 years agoWasn't supposed to go in this branch.
Robert Konigsberg [Wed, 29 Dec 2010 22:01:30 +0000 (14:01 -0800)]
Wasn't supposed to go in this branch.

13 years agoSet up test file for logscale
Robert Konigsberg [Wed, 29 Dec 2010 22:00:33 +0000 (14:00 -0800)]
Set up test file for logscale

13 years agoMerge branch 'master' of git://github.com/danvk/dygraphs
Robert Konigsberg [Wed, 29 Dec 2010 21:47:34 +0000 (13:47 -0800)]
Merge branch 'master' of git://github.com/danvk/dygraphs

13 years agoInteraction model demo: Clever hack -- now when scrolling down the page,
Robert Konigsberg [Wed, 29 Dec 2010 21:39:29 +0000 (13:39 -0800)]
Interaction model demo: Clever hack -- now when scrolling down the page,
the dygraph will not zoom when you scroll past it, unless you pause or
perform a non-scroll mouse event.

13 years agoGah, fixed spacing in interaction.js
Robert Konigsberg [Thu, 23 Dec 2010 06:38:39 +0000 (22:38 -0800)]
Gah, fixed spacing in interaction.js

13 years agoFix zooming in interaction.js so it focuses on the point where the mouse cursor is.
Robert Konigsberg [Thu, 23 Dec 2010 06:19:29 +0000 (22:19 -0800)]
Fix zooming in interaction.js so it focuses on the point where the mouse cursor is.

13 years agoRename unzoomGraph, remove commented-out code.
Robert Konigsberg [Thu, 23 Dec 2010 00:01:33 +0000 (16:01 -0800)]
Rename unzoomGraph, remove commented-out code.

13 years agoMove most of the interaction javascript to a .js file.
Robert Konigsberg [Wed, 22 Dec 2010 23:59:37 +0000 (15:59 -0800)]
Move most of the interaction javascript to a .js file.

13 years agoPanning is always allowed, even if you're not zoomed.
Robert Konigsberg [Wed, 22 Dec 2010 22:29:47 +0000 (14:29 -0800)]
Panning is always allowed, even if you're not zoomed.

13 years agointeraction.html's zoom was off. Zooming in and zooming out weren't
Robert Konigsberg [Wed, 22 Dec 2010 22:25:26 +0000 (14:25 -0800)]
interaction.html's zoom was off. Zooming in and zooming out weren't
matching 1:1.

The rest of it is whitespace cleansing.

13 years agoMerge branch 'master' of github.com:danvk/dygraphs
Dan Vanderkam [Tue, 21 Dec 2010 22:30:04 +0000 (17:30 -0500)]
Merge branch 'master' of github.com:danvk/dygraphs

13 years agocentury scale test
Dan Vanderkam [Tue, 21 Dec 2010 22:30:00 +0000 (17:30 -0500)]
century scale test

13 years agoRevert "Change intended to improve dygraphs rendering of y-values with tiny values...
Dan Vanderkam [Tue, 21 Dec 2010 22:28:36 +0000 (17:28 -0500)]
Revert "Change intended to improve dygraphs rendering of y-values with tiny values (e.g."

This reverts commit 3c1d225b3097891e863631bdb3b81a1250a5cce4.

(this was being reviewed, was not intended to be pulled)

13 years agoMerge branch 'master' of https://github.com/danvk/dygraphs
Jeremy Brewer [Tue, 21 Dec 2010 22:27:17 +0000 (17:27 -0500)]
Merge branch 'master' of https://github.com/danvk/dygraphs

13 years agofix sp
Dan Vanderkam [Tue, 21 Dec 2010 22:18:00 +0000 (17:18 -0500)]
fix sp