[GH-ISSUE #335] bar chart with signed values #154

Closed
opened 2026-03-03 16:22:57 +03:00 by kerem · 2 comments
Owner

Originally created by @Ankur-deDev on GitHub (Aug 11, 2022).
Original GitHub issue: https://github.com/mum4k/termdash/issues/335

Hi,
I am trying to create a bar chart with both negative and positive values, is it supported?
Thanks for your help

Originally created by @Ankur-deDev on GitHub (Aug 11, 2022). Original GitHub issue: https://github.com/mum4k/termdash/issues/335 Hi, I am trying to create a bar chart with both negative and positive values, is it supported? Thanks for your help
kerem closed this issue 2026-03-03 16:22:57 +03:00
Author
Owner

@mum4k commented on GitHub (Aug 12, 2022):

I think the bar chart only supports positive values currently. At least this test case seems to be suggesting so.

New code would be needed to support negative values and combinations of those.

<!-- gh-comment-id:1213051037 --> @mum4k commented on GitHub (Aug 12, 2022): I think the bar chart only supports positive values currently. At least [this test case](https://github.com/mum4k/termdash/blob/9954a0543ed738c7ccb78ecd8eaed8e21db6ae7e/widgets/barchart/barchart_test.go#L114-L127) seems to be suggesting so. New code would be needed to support negative values and combinations of those.
Author
Owner

@Ankur-deDev commented on GitHub (Aug 12, 2022):

Thanks for pointing this, it is very clear indeed that the negative values are not supported.

<!-- gh-comment-id:1213053491 --> @Ankur-deDev commented on GitHub (Aug 12, 2022): Thanks for pointing this, it is very clear indeed that the negative values are not supported.
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#154
No description provided.