[GH-ISSUE #7] Widget: Line chart #8

Closed
opened 2026-03-03 16:21:38 +03:00 by kerem · 2 comments
Owner

Originally created by @mum4k on GitHub (Apr 14, 2018).
Original GitHub issue: https://github.com/mum4k/termdash/issues/7

Originally assigned to: @mum4k on GitHub.

Implement a line chart widget.

Similar to: https://github.com/gizak/termui/raw/master/_example/linechart.png
And: https://github.com/yaronn/blessed-contrib/raw/master/docs/images/line.gif

Also look at: https://github.com/cjbassi/termui and the use of: https://github.com/exrook/drawille-go

Originally created by @mum4k on GitHub (Apr 14, 2018). Original GitHub issue: https://github.com/mum4k/termdash/issues/7 Originally assigned to: @mum4k on GitHub. Implement a line chart widget. Similar to: https://github.com/gizak/termui/raw/master/_example/linechart.png And: https://github.com/yaronn/blessed-contrib/raw/master/docs/images/line.gif Also look at: https://github.com/cjbassi/termui and the use of: https://github.com/exrook/drawille-go
kerem 2026-03-03 16:21:38 +03:00
Author
Owner

@mum4k commented on GitHub (Jun 22, 2018):

What we need:

  1. The draw.Text() function needs to support vertically placed text to allow for labels on axes.
  2. Need a draw.Line() function that draws horizontal and vertical lines and uses correct corner characters where the lines meet.
  3. Need a draw.BrailleLine() function that draws lines using the Braille unicode characters (http://www.alanwood.net/unicode/braille_patterns.html).

Interesting features for the LineChart:

  1. Labels on the axes.
  2. Support both positive and negative values.
  3. Value labels, custom or derived from the values. The labels must be auto positioned based on the available horizontal and vertical space.
  4. Support for multiple values in the same chart (multiple lines).
  5. Support for labels for the displayed lines matching the line color as in (https://github.com/yaronn/blessed-contrib/raw/master/docs/images/line.gif).
<!-- gh-comment-id:399584486 --> @mum4k commented on GitHub (Jun 22, 2018): What we need: 1. The draw.Text() function needs to support vertically placed text to allow for labels on axes. 1. Need a draw.Line() function that draws horizontal and vertical lines and uses correct corner characters where the lines meet. 1. Need a draw.BrailleLine() function that draws lines using the Braille unicode characters (http://www.alanwood.net/unicode/braille_patterns.html). Interesting features for the LineChart: 1. Labels on the axes. 1. Support both positive and negative values. 1. Value labels, custom or derived from the values. The labels must be auto positioned based on the available horizontal and vertical space. 1. Support for multiple values in the same chart (multiple lines). 1. Support for labels for the displayed lines matching the line color as in (https://github.com/yaronn/blessed-contrib/raw/master/docs/images/line.gif).
Author
Owner

@mum4k commented on GitHub (Jun 22, 2018):

Converted to project.

<!-- gh-comment-id:399587536 --> @mum4k commented on GitHub (Jun 22, 2018): Converted to project.
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#8
No description provided.