[PR #377] [CLOSED] [FEAT] reset for linechart #369

Closed
opened 2026-03-03 16:24:06 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mum4k/termdash/pull/377
Author: @woodliu
Created: 6/28/2024
Status: Closed

Base: masterHead: reset-linechart


📝 Commits (1)

  • 546db66 [FEAT] reset for linechart

📊 Changes

1 file changed (+7 additions, -0 deletions)

View changed files

📝 widgets/linechart/linechart.go (+7 -0)

📄 Description

I create a linechart for prometheus metrics, and when i change the PromQL in inputtest, i need draw a total different linechart.
For example:

  1. First i create a linechart with PromQL: node_receive_packet_total{}
  2. Seconde i change the PromQL to : rate(node_receive_packet_total{}[1m])
    That is the total different graph , so i need to reset the current graph ,and draw new one

🔄 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/377 **Author:** [@woodliu](https://github.com/woodliu) **Created:** 6/28/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `reset-linechart` --- ### 📝 Commits (1) - [`546db66`](https://github.com/mum4k/termdash/commit/546db666dc60598299463d190b7456792e030e83) [FEAT] reset for linechart ### 📊 Changes **1 file changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `widgets/linechart/linechart.go` (+7 -0) </details> ### 📄 Description I create a linechart for prometheus metrics, and when i change the PromQL in inputtest, i need draw a total different linechart. For example: 1. First i create a linechart with PromQL: `node_receive_packet_total{}` 2. Seconde i change the PromQL to : `rate(node_receive_packet_total{}[1m])` That is the total different graph , so i need to reset the current graph ,and draw new one --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 16:24:06 +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#369
No description provided.