+});
+
+it('testCustomBarsWithNegativeValuesInLogScale', function() {
+ var graph = document.getElementById("graph");
+
+ var count = 0;
+ var drawPointCallback = function() {
+ count++;
+ };
+
+ var g = new Dygraph(graph,
+ [
+ [1, [10, 20,30]],
+ [2, [5, 10, 15]],
+ [3, [-1, 5, 10]]
+ ],
+ {
+ drawPoints: true,
+ drawPointCallback: drawPointCallback,
+ customBars: true,
+ labels: ['X', 'Y']
+ });
+
+ // Normally all three points would be drawn.
+ assert.equal(3, count);
+ count = 0;
+
+ // In log scale, the third point shouldn't be shown.
+ g.updateOptions({ logscale : true });
+ assert.equal(2, count);
+});
+
+});