swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.28k stars 1.15k forks source link

Vertical Bar Chart - Base Alignment #1089

Open pedrosanguineti opened 5 years ago

pedrosanguineti commented 5 years ago

I'm submitting a ... (check one with "x")

Current behavior Vertical bars are not correctly aligned.

Expected behavior The vertical bars should be aligned.

Reproduction of the problem Simply create an angular 7.2.0 app, install ngx-charts 10.0.0, add a ngx-charts-bar-vertical component and look closely at the base of the bars, they are not aligned.

https://stackblitz.com/edit/angular-exixgx

Look closely at the chart, the 2nd bar (data = 0) extends below the 1st, the 3rd base is above 0, and the 4th one looks aligned with the 1st.

What is the motivation / use case for changing the behavior? The vertical bar charts used by our application look bad because the base is not correctly aligned.

Please tell us about your environment:

quedicesebas commented 5 years ago

When values are 0, still shows a bar!! image