Return to Roc packages
Documentation
Bar
▶
Trace
new
with_name
with_bar_width
to_str
Chart
▶
Chart
empty
to_html
add_bar_chart
add_scatter_chart
add_sankey_chart
add_pie_chart
with_layout
Color
▶
Color
rgb
rgba
hex
to_str
named
Font
▶
Font
default
new
to_str
Layout
▶
Layout
new
get_title
to_str
Line
▶
Type
dash_to_str
Line
new
to_str
Marker
▶
Marker
new
get_color
get_size
get_symbol
to_str
Pie
▶
Trace
new
to_str
Sankey
▶
Trace
new
to_str
Scatter
▶
Trace
new
to_str
Title
▶
Title
new
default
get_text
to_str
(press
s
)
Bar
.
Trace
Bar
.
new
: { data : List { x : x, y : y, marker : Marker.Marker }, orientation ? [ Vertical, Horizontal ], name ? Str, bar_width ? F32 } -> Result (Trace x y)
Bar
.
with_name
: Trace x y, Str -> Trace x y
Bar
.
with_bar_width
: Trace x y, F32 -> Result (Trace x y) [OutOfRange Str]
Bar
.
to_str
: Trace x y -> Str where x implements Inspect, y implements Inspect
Chart
.
Chart
Chart
.
empty
: Chart x y
Chart
.
to_html
: Chart x y -> Str where x implements Inspect, y implements Inspect
Chart
.
add_bar_chart
: Chart x y, Bar.Trace x y -> Chart x y
Chart
.
add_scatter_chart
: Chart x y, Scatter.Trace x y -> Chart x y
Chart
.
add_sankey_chart
: Chart x y, Sankey.Trace x y -> Chart x y
Chart
.
add_pie_chart
: Chart x y, Pie.Trace x y -> Chart x y
Chart
.
with_layout
: Chart x y, Layout.Layout x y -> Chart x y
Color
.
Color
Color
.
rgb
: U8, U8, U8 -> Color
Color
.
rgba
: U8, U8, U8, U8 -> Color
Color
.
hex
: Str -> Result Color [InvalidHex Str]
Color
.
to_str
: Color -> Str
Color
.
named
: Str -> Result Color [UnknownColor Str]
Font
.
Font
Font
.
default
: Font
Font
.
new
: { family ? Str, size ? F32, color ? Color.Color, shadow ? [ None, Auto ], style ? Style, textcase ? TextCase, variant ? Variant } -> Result Font
Font
.
to_str
: Font -> Str
Layout
.
Layout
Layout
.
new
: { global_font ? Font.Font, title ? Title.Title, x_axis ? Axis.Axis x, y_axis ? Axis.Axis y, show_legend ? Bool } -> Layout x y
Layout
.
get_title
: Layout x y -> Result Str [NotFound]
Layout
.
to_str
: Layout x y -> Str where x implements Inspect, y implements Inspect
Line
.
Type
: [ Solid, Dot, Dash, LongDash, DashDot, LongDashDot ]
Line
.
dash_to_str
: Type -> Str
Line
.
Line
Line
.
new
: { width ? F32, color ? Color.Color, dash ? Type } -> Line
Line
.
to_str
: Line -> Str
Marker
.
Marker
Marker
.
new
: { color ? Color.Color, size ? F32, symbol ? Str } -> Result Marker
Marker
.
get_color
: Marker -> Color.Color
Marker
.
get_size
: Marker -> F32
Marker
.
get_symbol
: Marker -> Str
Marker
.
to_str
: Marker -> Str
Pie
.
Trace
Pie
.
new
: { data : List { label : label, value : value }, hole ? F32, name ? Str } -> Result (Trace label value)
Pie
.
to_str
: Trace label value -> Str where label implements Inspect, value implements Inspect
Sankey
.
Trace
Sankey
.
new
: { nodes : List (Node node), links : List (Link node value) } -> Trace node value
Sankey
.
to_str
: Trace node value -> Str where node implements Inspect, value implements Inspect
Scatter
.
Trace
Scatter
.
new
: { data : List { x : x, y : y, marker : Marker.Marker }, orientation ? [ Vertical, Horizontal ], name ? Str, line ? Line.Line, mode ? Str } -> Result (Trace x y)
Scatter
.
to_str
: Trace x y -> Str where x implements Inspect, y implements Inspect
Title
.
Title
Title
.
new
: { text : Str, font ? Font.Font } -> Title
Title
.
default
: Title
Title
.
get_text
: Title -> Result Str [NotFound]
Title
.
to_str
: Title -> Str
Exposed Modules
LLM docs
Bar
Chart
Color
Font
Layout
Line
Marker
Pie
Sankey
Scatter
Title