Microchip-MPLAB-Harmony / gfx

Harmony 3 Graphics library
https://microchip-mplab-harmony.github.io/gfx/
Other
16 stars 15 forks source link

Line graph widget doesn’t support float numbers #28

Open manolisss opened 2 years ago

manolisss commented 2 years ago

Hello,

it seems that line graph supports only integer numbers and not float. This is an issue as most measurements are floats. Is there a workaround for this or an update coming out soon to fix The Last it?

Best regards, Manolis

microchip-gfx commented 2 years ago

There are no plans to add float support to the line graph. You should be able to utilize percents to map between your floating point measurement range and a fixed integer range, as a workaround.

Elpra-Bozas commented 2 years ago

Is there a workaround to change only the labels on the y axis without directly following the min, max range. Let's say for example that we want to represent 0.0 -> 16.0 in the y axis range and we set maximum value to 160. We use e.x. value 32 if we want to plot value 3.2. The graph line's properties for the y axis label with show 0 -> 160. Can we have a workaround to change the labels and keep the integer set value independent?