saresend / gust Goto Github PK
View Code? Open in Web Editor NEWA small charting/visualization tool and partial vega implementation for Rust
A small charting/visualization tool and partial vega implementation for Rust
I tried to use gust with the following code:
extern crate gust;
use gust::backend::bar_chart::BarChart;
use gust::frontend::write::render_graph;
use gust::backend::general::FileType;
fn main() {
println!("Hello, world!");
let mut b = BarChart::new();
let v = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L"];
for i in 0..10 {
b.add_data(v[i].to_string(), (i * i * i) as i32);
}
render_graph(&b, FileType::HTML).unwrap();
}
But it seems to panic at this line:
Gust/src/frontend/html_render.rs
Line 16 in 3858614
I get several of these errors when I try to compile:
error[E0046]: not all trait items implemented, missing: `set_color`, `set_dimensions`, `get_dimensions`, `set_description`, `set_identifier`
--> src/backend/stacked_bar_chart.rs:109:1
|
109 | impl Graphable for StackedBarChart {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `set_color`, `set_dimensions`, `get_dimensions`, `set_description`, `set_identifier` in implementation
|
::: src/backend/traits.rs:16:5
|
16 | fn set_color(&mut self, &str);
| ------------------------------ `set_color` from trait
17 | // set_dimensions
18 | fn set_dimensions(&mut self, (i32, i32));
| ----------------------------------------- `set_dimensions` from trait
19 |
20 | fn get_dimensions(&self) -> (i32, i32);
| --------------------------------------- `get_dimensions` from trait
21 |
22 | fn set_description(&mut self, &str);
| ------------------------------------ `set_description` from trait
23 |
24 | fn set_identifier(&mut self, &str);
| ----------------------------------- `set_identifier` from trait
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.