Factor out ticker functions and clean up their semantics/usage.
authorDan Vanderkam <danvk@google.com>
Wed, 17 Aug 2011 17:01:47 +0000 (13:01 -0400)
committerDan Vanderkam <danvk@google.com>
Wed, 17 Aug 2011 17:01:47 +0000 (13:01 -0400)
commit48e614acf3084b9836803f8b014bf0e65f1ca119
tree66609b957e7e0f5a8815ab5d4c36f6b76b39af88
parentf35016e8b97d39691777a8ad850bfa314e7e223a
Factor out ticker functions and clean up their semantics/usage.

This introduces a new syntax for per-axis properties:

axes: {
  x: {
    valueFormatter: ...
  }
}

The old syntax (xValueFormatter) still works, but is less general.
The valueFormatter and axisLabelFormatter options are now used
consistently between x- and y-axes and have a predictable set of
parameters.

Includes lots of tests for all relevant behaviors.
21 files changed:
auto_tests/misc/local.html
auto_tests/tests/axis_labels.js
auto_tests/tests/multiple_axes.js [new file with mode: 0644]
auto_tests/tests/tickers.js [new file with mode: 0644]
auto_tests/tests/utils_test.js [new file with mode: 0644]
docs/per-axis.html [new file with mode: 0644]
dygraph-canvas.js
dygraph-dev.js
dygraph-options-reference.js
dygraph-tickers.js [new file with mode: 0644]
dygraph-utils.js
dygraph.js
generate-combined.sh
jsTestDriver.conf
tests/is-zoomed.html
tests/multi-scale.html [new file with mode: 0644]
tests/number-display.html
tests/two-axes.html
tests/value-axis-formatters.html [new file with mode: 0644]
tests/x-axis-formatter.html
tests/y-axis-formatter.html