Struct tui_realm_stdlib::Chart[][src]

pub struct Chart { /* fields omitted */ }
Expand description

Chart

A component to display a chart on a cartesian coordinate system. The chart can work both in “active” and “disabled” mode.

Disabled mode

When in disabled mode, the chart won’t be interactive, so you won’t be able to move through data using keys. If you have more data than the maximum amount of bars that can be displayed, you’ll have to update data to display the remaining entries

Active mode

While in active mode (default) you can put as many entries as you wish. You can move with arrows and END/HOME keys

Implementations

new

Instantiates a new Chart component

Trait Implementations

render

Based on the current properties and states, renders a widget using the provided render engine in the provided Area If focused, cursor is also set (if supported by widget)

update

Update component properties Properties should first be retrieved through get_props which creates a builder from existing properties and then edited before calling update. Returns a Msg to the view

get_props

Returns a props builder starting from component properties. This returns a prop builder in order to make easier to create new properties for the element.

on

Handle input event and update internal states. Returns a Msg to the view

get_state

Get current state from component This component always returns None

blur

Blur component; basically remove focus

active

Active component; basically give focus Works only if not disabled

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.