graphix-stdlib 0.3.1

A dataflow language for UIs and network programming, standard library
Documentation
# The Gauge Widget

The `gauge` widget displays a single value as a filled progress indicator, perfect for showing percentages, completion status, or resource usage. It provides a clear visual representation of how full or complete something is.

## Interface

```graphix
val gauge: fn(
  ?#gauge_style: &[Style, null],
  ?#label: &[Span, null],
  ?#style: &[Style, null],
  ?#use_unicode: &[bool, null],
  &f64
) -> Tui;
```

## Parameters

- **gauge_style** - Style for the filled portion
- **label** - Line or span displayed in the center
- **use_unicode** - Use Unicode block characters for smoother rendering
- **style** - Style for the unfilled portion

## Examples

### Basic Usage

```graphix
{{#include ../../examples/tui/gauge_basic.gx}}
```

![Basic Gauge](./media/gauge_basic.png)

### Progress with Color Thresholds

```graphix
{{#include ../../examples/tui/gauge_threshold.gx}}
```

![Gauge With Color](./media/gauge_threshold.gif)

### Resource Usage

```graphix
{{#include ../../examples/tui/gauge_resource.gx}}
```

![Resource Usage Gauge](./media/gauge_resource.png)

## See Also

- [linegauge]linegauge.md - For horizontal line-based gauges
- [sparkline]sparkline.md - For historical trend display
- [barchart]barchart.md - For comparing multiple values