6 Commits

Author SHA1 Message Date
Navid Yaghoobi
02375f4dae initial commit
Signed-off-by: Navid Yaghoobi <navidys@fedoraproject.org>
2023-12-15 19:37:24 +11:00
Aaron DeMille
178e77cf79 Auto set the Y axis label width
The Y axis label width was hard coded to 4 with 2 decimal places. This
caused any number larger than 1000 to be truncated.

The Y axis label width is now based on the maximum value in the data
set, allowing enough characters for the whole number along with 2
decimal places.

Signed-off-by: Aaron DeMille <ajdemille@gmail.com>
2023-12-14 23:46:15 -07:00
Aaron DeMille
3578e68a90 Fix braille plot y-axis scaling
Braille Mode line charts didn't draw the dots in the correct y-axis
location. For example, I created a chart with data values between 1 and
2 stepping by .1 (1, 1.1, 1.2 ... 2.0). The PlotMarkerDot mode
accurately displayed the dots in the 1 - 2 range on the Y axis. However,
when using PlotMarkerBraille mode, the dots appeared between the range of
0 and 1. The gap is much larger if the the data values are bigger (for
example, 100 to 101 stepping by .1)

I modified the braille plotting code to more closely match the termui
library implementation, which didn't have the problem.

Graphs are now displaying as expected.

Signed-off-by: Aaron DeMille <ajdemille2@gmail.com>
2023-11-23 19:24:14 -07:00
Navid Yaghoobi
a187d4ddc6 barchart - allow to set axes line and label color
Signed-off-by: Navid Yaghoobi <navidys@fedoraproject.org>
2022-12-24 12:21:58 +11:00
Nick Wallace
4a0d6f3933 Fixing mispelling 2022-12-22 14:36:57 -06:00
Navid Yaghoobi
b1e54eab00 new feature - plot widget (linechart, scatter)
Signed-off-by: Navid Yaghoobi <navidys@fedoraproject.org>
2022-12-13 21:30:56 +11:00