From 7caa94645667a619227341b6fdc6580b4d52c9fa Mon Sep 17 00:00:00 2001 From: Partha Pal Date: Wed, 30 Sep 2015 12:34:39 +0530 Subject: [PATCH] Added api axis.cullingMax --- spec/api.axis-spec.js | 24 ++++++++++++++++++++++++ src/api.axis.js | 18 ++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/spec/api.axis-spec.js b/spec/api.axis-spec.js index 5764f73..a991aa0 100644 --- a/spec/api.axis-spec.js +++ b/spec/api.axis-spec.js @@ -51,4 +51,28 @@ describe('c3 api axis', function () { }); }); + + describe('axis.cullingMax',function(){ + it('should set max culling',function(){ + + chart.axis.cullingMax(2); + var tickCount = 0; + var ticks = document.querySelector('.c3-axis').querySelectorAll('.c3-axis-x .tick '); + + for(var i=0;i