krispo / ng2-nvd3

Angular2 component for nvd3
http://krispo.github.io/ng2-nvd3/
MIT License
328 stars 104 forks source link

maxBoxWidth property is not working with Boxplot graph. #139

Open AzeemMalik51 opened 6 years ago

AzeemMalik51 commented 6 years ago

I want to customize the width of BoxPlot is there any work around?? desired result https://ibb.co/bRVqF7

current result https://ibb.co/bRicv7

box plot graph options object is as follow this.optionsBplot = { chart: { type: 'boxPlotChart', height: 500, margin: { top: 20, right: 200, bottom: 150, left: 70 }, customColor: true, color: ['rgba(123, 190, 50, 1)', 'rgba(123, 190, 50, 0.5)', 'rgba(123, 190, 50, 1)'], x: function (d) { return d.label; }, y: function (d) { return d.values.Q3; }, yAxis: { axisLabel: '# of Models', axisLabelDistance: 10, tickFormat: function (d) { return d3.format(',1f')(d); } }, xAxis: { axisLabel: 'Gene', axisLabelDistance: 80, }, maxBoxWidth: 20, yDomain: [0, 500], callback: function () { d3.selectAll('.nv-axislabel').style('fill', '#003F95'); } } }; `