188 Commits

Author SHA1 Message Date
Markus Ressel
d3a7c777e0
fix slice rotation in main demo
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-13 10:23:06 +02:00
Markus Ressel
63d5ed1494
reset animation after multiple periods
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-13 10:23:06 +02:00
Markus Ressel
0d4a60f69d
toggle animation on click
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-13 10:23:06 +02:00
Markus Ressel
ed9012b1bf
refactor
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-13 10:23:06 +02:00
Markus Ressel
5d0440879d
improve example
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-13 10:23:06 +02:00
Markus Ressel
bb6ca0a79c
cleanup
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-13 10:23:06 +02:00
Markus Ressel
bba8fe74ca
refactor
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-13 10:23:06 +02:00
Markus Ressel
6119df590d
simplify
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-13 10:23:06 +02:00
Markus Ressel
004135d96f
add screenshot
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-13 10:23:06 +02:00
Markus Ressel
cb36b86f14
rework drawXAxisLabelToScreen to support drawing custom x-axis labels, add custom demo
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-13 10:23:06 +02:00
Markus Ressel
d3cf38290d
do not write labels beyond bounds
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-13 10:23:06 +02:00
Markus Ressel
d46f48fbe0
do not write labels beyond bounds
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-13 10:23:06 +02:00
Markus Ressel
d3dc728102
added SetXAxisLabelFunc method to provide custom X-Axis labels
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-13 10:23:06 +02:00
Navid Yaghoobi
40e5944bdc
Merge pull request #68 from markusressel/feature/allow-y-axis-range-override
allow manual override of Y-Axis MinValue and MaxValue
2024-10-13 12:48:55 +11:00
Navid Yaghoobi
3cfbbb446a running golangci-lint
Signed-off-by: Navid Yaghoobi <navidys@fedoraproject.org>
2024-10-13 12:44:01 +11:00
Markus Ressel
718914020b
change call order to better reflect real world usage
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-12 17:46:57 +02:00
Markus Ressel
a89f40eb4c
fix demo, add SetYRange to set both min and max at the same time
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-12 17:35:45 +02:00
Markus Ressel
d550a262e6
refactor and simplify calcBrailleLines logic and respect bounds
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-12 17:04:38 +02:00
Markus Ressel
e468a23392
fix property visibility
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-12 15:03:43 +02:00
Markus Ressel
83dbdb49e6
add screenshot
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-12 14:55:41 +02:00
Markus Ressel
7e3024f613
add parameters to control auto scaling behavior and prevent breaking change
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-12 14:54:53 +02:00
Markus Ressel
4632165f80
do not draw points that exceed the available height, fix scatter plots
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-12 14:45:42 +02:00
Markus Ressel
9d6693060a
revert changes to original plot example, add custom_range example
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-12 14:19:37 +02:00
Markus Ressel
eafbe24268
apply NaN fix to getMinFloat64From2dSlice
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-12 03:46:05 +02:00
Markus Ressel
e95a6c091d
allow manual override of Y-Axis MinValue and MaxValue
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-12 03:44:35 +02:00
Navid Yaghoobi
89b22f5d1d
Merge pull request #67 from markusressel/feature/do-not-draw-math-nan-values
ignore math.NaN() values when drawing plots
2024-10-12 12:03:06 +11:00
Navid Yaghoobi
5f3f2f99fc running golangci-lint
Signed-off-by: Navid Yaghoobi <navidys@fedoraproject.org>
2024-10-12 12:01:56 +11:00
Markus Ressel
6ec082d4f7
draw single valid data points in braille plot
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-11 22:42:46 +02:00
Markus Ressel
444dcd17a9
fix wrong braille line when data contains math.NaN
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-11 22:29:41 +02:00
Markus Ressel
170954e0d7
ignore math.NaN() values when drawing sparkline plots
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-11 01:19:47 +02:00
Markus Ressel
01b00ebe51
ignore math.NaN() values when determining max value
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-11 01:01:31 +02:00
Markus Ressel
3dd7ecf34b ignore math.NaN() values when drawing plots
Signed-off-by: Markus Ressel <mail@markusressel.de>
2024-10-11 00:32:08 +02:00
Navid Yaghoobi
ddfd01579e
Merge pull request #66 from navidys/plot_y_axis_type
add plot Y axis label type (float, integer)
v0.8.0
2024-09-28 12:34:53 +10:00
Navid Yaghoobi
1dfc3feec1 add plot Y axis label type (float, integer)
Signed-off-by: Navid Yaghoobi <navidys@fedoraproject.org>
2024-09-28 12:33:20 +10:00
Navid Yaghoobi
ef7a0912d9
Merge pull request #65 from navidys/lint
running golangci-lint
2024-09-28 12:17:54 +10:00
Navid Yaghoobi
4aedeab3b0 running golangci-lint
Signed-off-by: Navid Yaghoobi <navidys@fedoraproject.org>
2024-09-28 12:16:31 +10:00
Navid Yaghoobi
1110c53694
Merge pull request #59 from Topvennie/bars
Delete bar items
2024-09-28 12:09:41 +10:00
Navid Yaghoobi
9cfa279d8d
Merge pull request #63 from navidys/dependabot/go_modules/github.com/onsi/ginkgo/v2-2.20.2
Bump github.com/onsi/ginkgo/v2 from 2.20.0 to 2.20.2
2024-09-27 20:12:10 +10:00
dependabot[bot]
5625bd86d5
Bump github.com/onsi/ginkgo/v2 from 2.20.0 to 2.20.2
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.20.0 to 2.20.2.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/ginkgo/compare/v2.20.0...v2.20.2)

---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-27 10:03:02 +00:00
Navid Yaghoobi
43529b16f2
Merge pull request #64 from navidys/dependabot/go_modules/github.com/onsi/gomega-1.34.2
Bump github.com/onsi/gomega from 1.34.1 to 1.34.2
2024-09-27 20:01:53 +10:00
dependabot[bot]
c35dc08b42
Bump github.com/onsi/gomega from 1.34.1 to 1.34.2
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.34.1 to 1.34.2.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.34.1...v1.34.2)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-27 09:37:50 +00:00
Navid Yaghoobi
984a311125 update go to 1.22.6
Signed-off-by: Navid Yaghoobi <navidys@fedoraproject.org>
2024-09-27 19:36:33 +10:00
Topvennie
335e9835f3
chore(bar): linting 2024-08-21 14:05:33 +02:00
Topvennie
a65ef0c1c5
chore(bar): allow multiple bars to be deleted at once 2024-08-14 23:19:41 +02:00
Topvennie
224c39bcd2
feat(bar): remove bars 2024-08-14 23:14:06 +02:00
Navid Yaghoobi
3a2e991738
Merge pull request #57 from navidys/dependabot/go_modules/github.com/onsi/ginkgo/v2-2.20.0
Bump github.com/onsi/ginkgo/v2 from 2.19.1 to 2.20.0
2024-08-12 08:07:02 +10:00
dependabot[bot]
1946bda711
Bump github.com/onsi/ginkgo/v2 from 2.19.1 to 2.20.0
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.19.1 to 2.20.0.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/ginkgo/compare/v2.19.1...v2.20.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-08 11:02:34 +00:00
Navid Yaghoobi
f1922269c0
Merge pull request #54 from navidys/dependabot/go_modules/github.com/onsi/ginkgo/v2-2.19.1
Bump github.com/onsi/ginkgo/v2 from 2.19.0 to 2.19.1
2024-07-30 21:30:56 +10:00
dependabot[bot]
aa9f7893de
Bump github.com/onsi/ginkgo/v2 from 2.19.0 to 2.19.1
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.19.0 to 2.19.1.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/ginkgo/compare/v2.19.0...v2.19.1)

---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-29 10:23:49 +00:00
Navid Yaghoobi
d5dda69eaa remove cirrus
Signed-off-by: Navid Yaghoobi <navidys@fedoraproject.org>
v0.7.0
2024-07-28 20:31:41 +10:00