E45F Add support for vertical gauges · Issue #2148 · ratatui/ratatui · GitHub
[go: up one dir, main page]

Skip to content

Add support for vertical gauges #2148

@thatdevsherry

Description

@thatdevsherry

Problem

While I was developing suzui-rs, I at one time thought of a layout where I would use "Gauge" in vertical orientation to represent car temp, but I don't think it's supported.

Opening issue for discussion if it's worth supporting this. This is a very niche case. Its perfectly fine to not implement it as realistically it's not going to have much (if at all) use.

Solution

  • Add a way to turn a gauge/linegauge into vertical position e.g. Gauge::default().orientation(VERTICAL)
  • Default to always be HORIZONTAL
  • fully backwards compatible
  • A few more actual use cases if this feature makes sense

Alternatives

N/A

Additional context

Tried testing a vertical gauge layout. Looked cool in mind, but not sure if it has a good use-case.

Screencast.From.2025-10-21.21-38-40.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0