Custom Ticker Not Reinvoked After Zoom #756

Open
imallett opened this Issue Jun 17, 2016 · 0 comments

Projects

None yet

2 participants

@imallett

After zooming with a custom ticker, the axis labels disappear.

A live example can be seen in the graph on my website here:
http://geometrian.com/programming/reference/timestds/index.php

The code in this case is:

axes: {
    x: {
        ticker: function(min, max, pixels, opts, dygraph, vals) {
            var arr = [];
            for (var y=min;y<max;++y) {
                arr.push({v:y,label:(y%5==0&&y!=1975)?y:""});
            }
            return arr;
        }
    },
    //...
}

To reproduce, zoom horizontally or vertically. Double-click to reset. The x-axis labels will be gone. They reappear when the page is reloaded.

Browsers at least Firefox/Chrome, OSes at least Win 7, Dygraphs version latest.

@danvk danvk added the bug label Sep 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment