MCPcopy Create free account
hub / github.com/elftausend/graplot / main

Function main

examples/bar_colored.rs:3–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1use graplot::{Bar, ORANGE, RED, GREEN, BLUE};
2
3fn main() {
4 let mut bar = Bar::new([("Ferris", RED), ("Stefan", GREEN), ("Test", BLUE)], &[100., 200., 500.,]);
5 bar.add(("Added", ORANGE), 400.);
6 bar.set_title("title");
7 bar.set_ylabel("test");
8 bar.show();
9}

Callers

nothing calls this directly

Calls 4

addMethod · 0.45
set_titleMethod · 0.45
set_ylabelMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected