mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #11] Feature request #7
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @andrewuhl on GitHub (Jan 11, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/11
Any plans / scope in this project to add basic plotting widgets? E.g. scatter, line or bar plots?
@rivo commented on GitHub (Jan 11, 2018):
I'm not sure. I find that github.com/gizak/termui does a pretty good job at that. I was trying to focus on things that
termuidoesn't cover.I'm not ruling it out at this point but plots/charts would more likely be on the long-term roadmap.
Is there a specific reason you'd like to have it in here instead of using
termui?@andrewuhl commented on GitHub (Jan 11, 2018):
termuiwas the inspiration for my question. Is it possible to embed atermuicomponent in one of your flex panels? I haven't tried this yet, but perhaps an integration is straightforward?@rivo commented on GitHub (Jan 11, 2018):
I had a quick look at how
termuiworks. I'm by no means an expert ontermuiinternals but it looks like they draw their charts into buffers whose content then gets copied over to github.com/nsf/termbox-go.tviewis not based ontermboxbut ontcellbuttermuilooks losely coupled enough to be connected to something different.My guess is that instead of calling their render() function, you could create your own primitive in
tviewwhose Draw() function would read out thetermuiplot buffer and draw it intotview's screen.But like I said, this is just a guess based on a very brief look.
@darkhz commented on GitHub (Dec 13, 2022):
Line charts has now been implemented in tvxwidgets, import and use.