Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Examples Gallery

Graph types

cargo run --example cloropleth_unemployment

Display data from a csv and a tsv as a cloropleth on a geo projection.

Cloropleth

cargo run --example vconcat_interactive

Display two charts that can be be interact together through selection

vconcat_interact Visualization

cargo run --example diverging_stacked_bar_chart

Display data from a json after doing some transformation on it as a stacked bar chart

Diverging Stacked Bar Chart

cargo run --example scatterplot

Loads data from a csv, deserializing to a struct, and display a colored scatterplot.

scatterplot

cargo run --example stacked_bar_chart

Loads data from an URL, displaying the aggregated count by type by month as a stacked bar graph.

stacked_bar_chart

cargo run --example stock_graph

Loads data from a csv, deserializing to a struct, and display the graph as a line.

stock_graph

cargo run --example line_with_interval

Loads data from an URL, displaying the aggregated mean by year with the variance on a two level layers as a line graph.

line_with_interval

cargo run --example pie_chart

Loads data from an URL, displaying the aggregated mean by year with the variance on a two level layers as a line graph.

pie_chart

Data Sources

cargo run --example from_ndarray

Loads data directly from a random ndarray::Array2.

from_ndarray

cargo run --example from_csv

Loads data directly from a csv without deserializing to a struct.

from_csv

cargo run --example from_url

Loads data directly from an URL.

from_url

cargo run --example from_json_spec

Load the chart directly from the JSON spec.

from_json_spec

cargo run --example from_mixed_json_rust

Create a chart from existing json and add new data

from_mixed_json_rust

cargo run --example from_nalgebra --features nalgebra

Loads data directly from a random nalgebra::Matrix.

nalgebra

cargo run --example from_rulinalg --features rulinalg

Loads data directly from a random rulinalg::matrix::Matrix.

rulinalg

cargo run --example from_nalgebra --features nalgebra

Loads data directly from a random nalgebra::Matrix.

cargo run --example from_rulinalg --features rulinalg

Loads data directly from a random rulinalg::matrix::Matrix.

Miscellaneous

cargo run --example without_builders

Build a graph without using the builders. This is not the recommended way as it's more verbose and expose more the internal structures and types, but it's possible when wanting to avoid Results produced by the Builders.

without_builders