novus / nvd3

A reusable charting library written in d3.js
http://nvd3.org/
Other
7.22k stars 2.15k forks source link

MultiChart tooltip issue, with stacked Bar #2191

Open TolyS opened 5 years ago

TolyS commented 5 years ago

I create MultiChart with two bar charts with different yAxis, one simple Bar chart overlapping by second stacked Bar chart. Stacked bars draw incorrectly after clicking the instrument selections. This action add extra empty value to chart data, so one extra is created. image

after clicking tooltip:

image

As I corectly understan problem is in line: if (dataBars2.length) { extraValue2BarStacked.push({x:0, y:0});}

And the code in the answer to https://stackoverflow.com/questions/48395452/nvd3-js-multichart-with-area-stackedarea-series-drawn-below-the-x-axis-obscure/49315033#49315033 I think should resolve this problem. maybe this code should be contributed to nvd3?