{"id":13439154,"url":"https://github.com/saresend/Gust","last_synced_at":"2025-03-20T07:32:12.387Z","repository":{"id":62439872,"uuid":"105674180","full_name":"saresend/Gust","owner":"saresend","description":"A small charting/visualization tool and partial vega implementation for Rust","archived":false,"fork":false,"pushed_at":"2019-04-11T13:48:43.000Z","size":1403,"stargazers_count":131,"open_issues_count":28,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-10T07:22:02.554Z","etag":null,"topics":["graph","html","rust","rust-library","visualization"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saresend.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-03T16:20:09.000Z","updated_at":"2024-05-27T12:48:49.000Z","dependencies_parsed_at":"2022-11-01T22:15:59.009Z","dependency_job_id":null,"html_url":"https://github.com/saresend/Gust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saresend%2FGust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saresend%2FGust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saresend%2FGust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saresend%2FGust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saresend","download_url":"https://codeload.github.com/saresend/Gust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244570883,"owners_count":20474141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graph","html","rust","rust-library","visualization"],"created_at":"2024-07-31T03:01:11.575Z","updated_at":"2025-03-20T07:32:07.369Z","avatar_url":"https://github.com/saresend.png","language":"Rust","readme":"# Gust\nA charting library for rust!\n\n[![Build Status](https://travis-ci.org/saresend/Gust.svg?branch=master)](https://travis-ci.org/saresend/Gust.svg?branch=master)\n![Crates.io](https://img.shields.io/crates/v/gust.svg)\n\n\n**Disclaimer**\nThis is still very much a work in progress! APIs are very unstable and subject to change. Contributions and suggestions are welcomed and greatly appreciated! \n\n---\n\u003cp align=\"center\"\u003e\n\u003cimg src=https://d30y9cdsu7xlg0.cloudfront.net/png/43264-200.png\u003e\n\u003c/p\u003e\n\n## What is Gust ##\n\nGust is a small charting crate to make it really easy to build simple interactive data visualizations in rust. It also serves as a partial [Vega](http://vega.github.io/) implementation that will (hopefully) become more complete over time.\n\n---\n\nGust allows you to render the actual visualizations themselves using D3.js, (meaning they're interactive!) as well as providing the flexibility to directly render the underlying JSON specification for Vega. \n\n\n### Currently Implementations ### \n\nCurrently, Gust supports only 3 charts so far:\n\n1. Bar Charts\n2. Stacked Bar Charts\n3. Line Charts\n\nMore will be coming soon! If you're interested in contributing your own, just make a pull request. Cheers!\n\n\n\n## [Why did you do this in rust?](https://transitiontech.ca/random/RIIR) ## \n\n## Installation ## \n` gust = \"0.1.4\" `\n\n\n\n## Samples and Sample Usage ## \n\n```rust\n    use backend::bar_chart::BarChart;\n    use frontend::write::render_graph;\n```\n\n### Sample Bar Chart ###\n```rust\n     let mut b = BarChart::new();\n        let v = [\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\", \"I\", \"J\", \"K\", \"L\"];\n        for i in 0..10 {\n            b.add_data(v[i].to_string(), (i * i * i) as i32);\n        }\n        render_graph(\u0026b, FileType::HTML).unwrap();\n```\n### Result: **gust_build/html/bar_chart.html** ###\n![bar chart](./assets/bar_chart.png)\n\n### Stacked Bar Chart example ### \n```rust\nuse backend::stacked_bar_chart::StackedBarChart;\n\nlet mut b = StackedBarChart::new();\n        for i in 0..10 {\n            b.add_data(i, i * i, 1);\n            b.add_data(i, i + i, 0);\n        }\n        render_graph(\u0026b, FileType::HTML).unwrap();\n```\n### Result: **gust_build/html/stacked_bar_chart.html** ### \n![stacked bar chart](./assets/stacked_bar.png)\n\n\n\n## Additional Docs ## \nhttps://docs.rs/gust/0.1.4/gust/\n\n\n## Special Mentions ## \nThe rendering is all handled by Vega: https://vega.github.io/\n","funding_links":[],"categories":["Libraries","库 Libraries","库"],"sub_categories":["Data visualization","数据可视化 Data visualization","数据可视化"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaresend%2FGust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaresend%2FGust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaresend%2FGust/lists"}