Commit b99ea80b by carl bergquist

test(graph): validates that percentage is shown when using stack and percentage

fixes #2379
parent ce2ae319
...@@ -215,6 +215,17 @@ define([ ...@@ -215,6 +215,17 @@ define([
}); });
}); });
graphScenario('when stack and percent', function(ctx) {
ctx.setup(function(scope) {
scope.panel.percentage = true;
scope.panel.stack = true;
});
it('should show percentage', function() {
var axis = ctx.plotOptions.yaxes[0];
expect(axis.tickFormatter(100, axis)).to.be("100%");
});
});
}); });
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment