[PR #133] [MERGED] The LineChart widget now supports zooming the content #214

Closed
opened 2026-03-03 16:23:20 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mum4k/termdash/pull/133
Author: @mum4k
Created: 2/18/2019
Status: Merged
Merged: 2/18/2019
Merged by: @mum4k

Base: develHead: linechart-zoom


📝 Commits (10+)

  • 4981ad2 Method on Braille canvas that just sets cell options.
  • 3615294 Method that returns the underlying cell area.
  • e3858d9 Move ratio related functions from area to numbers.
  • e677c1f Braille method that sets cell options in an area.
  • 0acf555 Only set options in cells within the specified area.
  • aec5012 Functions that splits a number by a ratio.
  • 7c37946 Remove logging from numbers.
  • d5b0494 The XDetails object now maintains its creation properties.
  • 4a7c5d9 Object that tracks the zoom state for LineChart.
  • 72b3ac4 The LineChart widget now supports zoom.

📊 Changes

18 files changed (+2969 additions, -123 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 README.md (+2 -1)
📝 area/area.go (+1 -32)
📝 area/area_test.go (+0 -25)
📝 canvas/braille/braille.go (+47 -2)
📝 canvas/braille/braille_test.go (+192 -25)
📝 canvas/braille/testbraille/testbraille.go (+14 -0)
📝 canvas/testcanvas/testcanvas.go (+9 -0)
📝 images/linechartdemo.gif (+0 -0)
📝 numbers/numbers.go (+49 -0)
📝 numbers/numbers_test.go (+138 -0)
📝 widgets/linechart/axes/axes.go (+8 -4)
📝 widgets/linechart/axes/axes_test.go (+38 -0)
📝 widgets/linechart/linechart.go (+52 -18)
📝 widgets/linechart/linechart_test.go (+192 -0)
📝 widgets/linechart/options.go (+42 -16)
widgets/linechart/zoom/zoom.go (+487 -0)
widgets/linechart/zoom/zoom_test.go (+1696 -0)

📄 Description

Fixes #55


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mum4k/termdash/pull/133 **Author:** [@mum4k](https://github.com/mum4k) **Created:** 2/18/2019 **Status:** ✅ Merged **Merged:** 2/18/2019 **Merged by:** [@mum4k](https://github.com/mum4k) **Base:** `devel` ← **Head:** `linechart-zoom` --- ### 📝 Commits (10+) - [`4981ad2`](https://github.com/mum4k/termdash/commit/4981ad23e21bbe56b4dec2fe7b730acb5891544e) Method on Braille canvas that just sets cell options. - [`3615294`](https://github.com/mum4k/termdash/commit/3615294c34ceb626d90bad3b306917adcdd34b3d) Method that returns the underlying cell area. - [`e3858d9`](https://github.com/mum4k/termdash/commit/e3858d93f56e2a4de22fb76d9a9dce98704a6075) Move ratio related functions from area to numbers. - [`e677c1f`](https://github.com/mum4k/termdash/commit/e677c1fe1a41170360a648521671e794c1b60811) Braille method that sets cell options in an area. - [`0acf555`](https://github.com/mum4k/termdash/commit/0acf555aab3f087e6b361c97e2a3173aaa1ef7cc) Only set options in cells within the specified area. - [`aec5012`](https://github.com/mum4k/termdash/commit/aec5012daaddb7982fd0950e263a777ad33fb239) Functions that splits a number by a ratio. - [`7c37946`](https://github.com/mum4k/termdash/commit/7c3794691c9379eb196c8836b901e1c840b868ee) Remove logging from numbers. - [`d5b0494`](https://github.com/mum4k/termdash/commit/d5b04946d2348a757d4ede6245a57e86e02818b1) The XDetails object now maintains its creation properties. - [`4a7c5d9`](https://github.com/mum4k/termdash/commit/4a7c5d9f486f62bac6e3fede1bafebee6d1c8c3b) Object that tracks the zoom state for LineChart. - [`72b3ac4`](https://github.com/mum4k/termdash/commit/72b3ac4ff91fe978efba5ca1964fb1969c42c580) The LineChart widget now supports zoom. ### 📊 Changes **18 files changed** (+2969 additions, -123 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `README.md` (+2 -1) 📝 `area/area.go` (+1 -32) 📝 `area/area_test.go` (+0 -25) 📝 `canvas/braille/braille.go` (+47 -2) 📝 `canvas/braille/braille_test.go` (+192 -25) 📝 `canvas/braille/testbraille/testbraille.go` (+14 -0) 📝 `canvas/testcanvas/testcanvas.go` (+9 -0) 📝 `images/linechartdemo.gif` (+0 -0) 📝 `numbers/numbers.go` (+49 -0) 📝 `numbers/numbers_test.go` (+138 -0) 📝 `widgets/linechart/axes/axes.go` (+8 -4) 📝 `widgets/linechart/axes/axes_test.go` (+38 -0) 📝 `widgets/linechart/linechart.go` (+52 -18) 📝 `widgets/linechart/linechart_test.go` (+192 -0) 📝 `widgets/linechart/options.go` (+42 -16) ➕ `widgets/linechart/zoom/zoom.go` (+487 -0) ➕ `widgets/linechart/zoom/zoom_test.go` (+1696 -0) </details> ### 📄 Description Fixes #55 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 16:23:20 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/termdash#214
No description provided.