We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1895900 commit 4adc489Copy full SHA for 4adc489
1 file changed
examples/letter_counter.rs
@@ -1,5 +1,5 @@
1
use std::collections::btree_map::BTreeMap;
2
-use plotlib::style::BarChart;
+use plotlib::style::BoxStyle;
3
4
fn main() {
5
let mut data = Vec::new();
@@ -16,11 +16,11 @@ fn main() {
16
for (ch, count) in &count {
17
println!("{:?}: {}", ch, count);
18
let count = *count as f64;
19
- data.push(plotlib::barchart::BarChart::new(count).label(ch.to_string()));
+ data.push(plotlib::repr::BarChart::new(count).label(ch.to_string()));
20
}
21
// Add data to the view
22
let v = data
23
- .iter()
+ .into_iter()
24
.fold(plotlib::view::CategoricalView::new(), |view, datum| {
25
view.add(datum)
26
});
0 commit comments