eclipse / swtchart

Eclipse Public License 2.0
43 stars 41 forks source link

Axis 0 value not displayed #353

Open MatthewKhouzam opened 1 year ago

MatthewKhouzam commented 1 year ago

This is a bug I introduced. https://github.com/eclipse/swtchart/commit/2d0865e339b85c6006a10a22f119b770b263302e

When the value of the y axis is 0, we don't display anything since double diff = Math.abs((value - tickLabelValues.get(i)) / value); means (0.0-0.0)/0.0 < 0.1

A- Sorry

B- I will try to patch it in the near future.

eselmeister commented 1 year ago

@MatthewKhouzam Thanks for reporting. I will also have a look at it.