Add a legendFormatter option
[dygraphs.git] / src / dygraph-tickers.js
index 7eb17dd..f152bf9 100644 (file)
@@ -301,7 +301,7 @@ TICK_PLACEMENT[Granularity.CENTENNIAL]      = {datefield: DateField.DATEFIELD_Y,
  * This is a list of human-friendly values at which to show tick marks on a log
  * scale. It is k * 10^n, where k=1..9 and n=-39..+39, so:
  * ..., 1, 2, 3, 4, 5, ..., 9, 10, 20, 30, ..., 90, 100, 200, 300, ...
- * NOTE: this assumes that Dygraph.LOG_SCALE = 10.
+ * NOTE: this assumes that utils.LOG_SCALE = 10.
  * @type {Array.<number>}
  */
 var PREFERRED_LOG_TICK_VALUES = (function() {
@@ -443,16 +443,3 @@ export var getDateAxis = function(start_time, end_time, granularity, opts, dg) {
   }
   return ticks;
 };
-
-// These are set here so that this file can be included after dygraph.js
-// or independently.
-// if (Dygraph &&
-//     Dygraph.DEFAULT_ATTRS &&
-//     Dygraph.DEFAULT_ATTRS['axes'] &&
-//     Dygraph.DEFAULT_ATTRS['axes']['x'] &&
-//     Dygraph.DEFAULT_ATTRS['axes']['y'] &&
-//     Dygraph.DEFAULT_ATTRS['axes']['y2']) {
-//   Dygraph.DEFAULT_ATTRS['axes']['x']['ticker'] = Dygraph.dateTicker;
-//   Dygraph.DEFAULT_ATTRS['axes']['y']['ticker'] = Dygraph.numericTicks;
-//   Dygraph.DEFAULT_ATTRS['axes']['y2']['ticker'] = Dygraph.numericTicks;
-// }