pepstock-org / Charba

J2CL and GWT Charts library based on CHART.JS
https://pepstock-org.github.io/Charba-Wiki/docs
Apache License 2.0
62 stars 6 forks source link

Found Bug #20

Closed anaether closed 5 years ago

anaether commented 5 years ago

I found a bug when you have a BarChart chart: if we have activate this option and we have a value that is exact the same as the left side values it displays it as 100%. chart.getOptions().setResponsive(true);

If you set it to false the the chart set it right. With this i mean if you have the highest barchart entry by 50 the chart set the left label to 60 but when its true it keeps it to 50. chart.getOptions().setResponsive(false);

stockiNail commented 5 years ago

@cRUSHER-HLG have you solved the issue? I have seen you closed this issue

stockiNail commented 5 years ago

@cRUSHER-HLG I did some tests. Max Tick: 80 Max value of data in dataset: 80

chart.getOptions().setResponsive(true);

resp-yes

chart.getOptions().setResponsive(false);

resp-no

The max value of the ticks is the same of max value of data of dataset.