Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/duskmoon314/gongbi
Gongbi (工笔) is a data visualization crate inspired by ggplot2
https://github.com/duskmoon314/gongbi
data-visualization grammar-of-graphics rust
Last synced: 7 days ago
JSON representation
Gongbi (工笔) is a data visualization crate inspired by ggplot2
- Host: GitHub
- URL: https://github.com/duskmoon314/gongbi
- Owner: duskmoon314
- License: apache-2.0
- Created: 2024-08-01T12:15:28.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-23T02:40:55.000Z (3 months ago)
- Last Synced: 2024-10-10T20:49:46.540Z (28 days ago)
- Topics: data-visualization, grammar-of-graphics, rust
- Language: Rust
- Homepage: https://duskmoon314.github.io/gongbi/
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Gongbi (工笔)
A data visualization crate based on plotters
## Usage
```rust
let mpg = CsvReadOptions::default()
.with_has_header(true)
.try_into_reader_with_file_path(Some("examples/mpg.csv".into()))?
.finish()?;let plot = plot!(mpg, aes!("displ", "hwy"), save = "gongbi.svg")
+ geom_point!()
+ labs!(caption = "Demo of geom_point");plot.draw()?;
```![example scatters of mpg](gongbi.svg)
## License
Licensed under either of
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)at your option.
### Note
- `mpg.csv` is copied from [ggplot2](https://github.com/tidyverse/ggplot2) package.