Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Vertical graph and axis orientation #1112

Open
lenianiva opened this issue Jun 7, 2024 · 1 comment
Open

[FEATURE] Vertical graph and axis orientation #1112

lenianiva opened this issue Jun 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@lenianiva
Copy link

lenianiva commented Jun 7, 2024

Description of the requested feature

Currently there is no orientation option for a graph widget. Would it be possible to have an option to set the orientation and direction of time on the graph widget?

Proposed configuration syntax

There would be two additional flags on the graph widget. One sets the origin (topleft, topright, botleft, botright) when the graph's value doesn't go negative, and one sets whether the y axis is vertical.

(graph
					:width 20
					:height 100 
                                        :yaxis-vertical false
                                        :origin "botleft"
					:value {EWW_CPU.avg}
					:time-range "30s"
					:dynamic false
					:max 100
					:min 0))

which would create a graph widget with y axis pointing to the right and x axis pointing to the top.

Another way is to have three boolean flags, flipx, flipy, and vertical. flipx (resp. flipy) when enabled makes the x (resp. y) axis go the other way, and if the graph is vertical the two axes are exchanged.

Additional context

The transform widget does not work on the graph widget

@lenianiva lenianiva added the enhancement New feature or request label Jun 7, 2024
@lenianiva lenianiva changed the title [FEATURE] Vertical graph [FEATURE] Vertical graph and axis orientation Jun 7, 2024
@lenianiva
Copy link
Author

PR #1113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant