Open xyrintech opened 6 years ago
I think changing the bar height could be misleading. We may consider adding an invisible element that is 100% and overlays the bar, that triggers the tooltip.
Thanks for looking into this. I support your option. Do we already have this invisible element option in the package or you are planning to have it in future?
We don't have it yet. It's just an idea on how this can be solved.
Got it. Is this something you can please implement?
I have the same problem, what was the solution found? Tha nk you so much
@GustavoLima93 @xyrintech
Is solve it by this way:
when you build your options, in series object populate
series: [
{ // your bar
type: 'bar',
barWidth: '30%',
data: myData
},
{ // shadow bar
type: 'bar',
barWidth: '30%',
itemStyle: {
// transparent bar
normal: { color: 'rgba(0, 0, 0, 0)' }
},
barGap: '-100%',
data: myDataShadow,
animation: false
}
]
I recommend you put the max value in all positions of myDataShadow to make all bar clickable
release in 11.2.0
I'm submitting a bug report
Current behavior The bar charts shows up correctly but the bars with value 0 are very hard to read and hover.
Expected behavior There should be a way to specify in minimum height for bars in bar chart.
Reproduction of the problem Please see this screenshot.
Please tell us about your environment: MAC OS
ngx-charts version: x.x.x 8.1.0
Angular version: x.x.x 6.x