basic/basic.rs
1use piechart::{Chart, Data};
2
3fn main() {
4 #[rustfmt::skip]
5 let data = vec![
6 Data { label: "BTC".into(), value: 5977.0, color: None, fill: '•' },
7 Data { label: "BCH".into(), value: 3045.0, color: None, fill: '◍' },
8 Data { label: "LTC".into(), value: 2030.0, color: None, fill: '.' },
9 Data { label: "ETH".into(), value: 2350.0, color: None, fill: '*' },
10 ];
11
12 Chart::new().draw(&data);
13}