krispo / angular-nvd3

AngularJS directive for NVD3 reusable charting library (based on D3). Easily customize your charts via JSON API.
http://krispo.github.io/angular-nvd3
MIT License
1.29k stars 377 forks source link

multiBarHorizontalChart reduceYTicks not working #764

Open chris-carrington opened 5 years ago

chris-carrington commented 5 years ago

I'm trying to reduce the ticks on the yAxis (the axis with dates), but in the screenshot please see the value of chart but all ticks are showing

Screen Shot 2019-03-27 at 10 13 36 AM

As seen in the screenshot I've tried

chart.reduceXTicks = true; chart.reduceYTicks = true; chart.yAxis.showMaxMin = true; chart.yAxis.tickValues = [ few values ]; chart.yAxis.ticks = 4; chart.xAxis.showMaxMin = true; chart.xAxis.tickValues = [ few values ]; chart.xAxis.ticks = 4;

But still get all the ticks. & @ http://krispo.github.io/angular-nvd3/#/multiBarHorizontalChart no extended options I've tried reduceTicks either. How may reducing y axis ticks for a multiBarHorizontalChart be done?