X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=src%2Fdygraph-tickers.js;h=f152bf9969bd6e6ead2166055a6f3e52a763bfe4;hb=c76d4b2aaf806895ff8693d1060d58ce9f83c0ae;hp=7eb17ddac0c15ddce6983c74df23fdd89a7d1ee6;hpb=6ecc073934b76e5076f917112a24ff7094857730;p=dygraphs.git diff --git a/src/dygraph-tickers.js b/src/dygraph-tickers.js index 7eb17dd..f152bf9 100644 --- a/src/dygraph-tickers.js +++ b/src/dygraph-tickers.js @@ -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.} */ 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; -// }