{"id":13567410,"url":"https://github.com/Canop/csv2svg","last_synced_at":"2025-04-04T01:32:00.902Z","repository":{"id":45281511,"uuid":"325619939","full_name":"Canop/csv2svg","owner":"Canop","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-12T14:36:00.000Z","size":278,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T06:35:11.880Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Canop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-30T18:23:42.000Z","updated_at":"2024-09-16T07:25:55.000Z","dependencies_parsed_at":"2024-01-15T19:08:38.456Z","dependency_job_id":"2ac30aa6-f588-40f1-831b-8fdcc13bbe87","html_url":"https://github.com/Canop/csv2svg","commit_stats":{"total_commits":20,"total_committers":3,"mean_commits":6.666666666666667,"dds":0.09999999999999998,"last_synced_commit":"0432dc3d183419dccb91217291f448dfc9261c3c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Fcsv2svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Fcsv2svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Fcsv2svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Fcsv2svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Canop","download_url":"https://codeload.github.com/Canop/csv2svg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107816,"owners_count":20884793,"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":[],"created_at":"2024-08-01T13:02:30.782Z","updated_at":"2025-04-04T01:31:55.887Z","avatar_url":"https://github.com/Canop.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"[![MIT][s2]][l2] [![Latest Version][s1]][l1] [![docs][s3]][l3] [![Chat on Miaou][s4]][l4]\n\n[s1]: https://img.shields.io/crates/v/csv2svg.svg\n[l1]: https://crates.io/crates/csv2svg\n\n[s2]: https://img.shields.io/badge/license-MIT-blue.svg\n[l2]: LICENSE\n\n[s3]: https://docs.rs/csv2svg/badge.svg\n[l3]: https://docs.rs/csv2svg/\n\n[s4]: https://miaou.dystroy.org/static/shields/room.svg\n[l4]: https://miaou.dystroy.org/3\n\n\n# csv2svg\n\nBuild a SVG graph from a csv document.\n\n## Installation\n\nYou must have [Rust installed](https://rustup.rs). Do\n\n```cli\ncargo install csv2svg\n```\n\n## Usage\n\n### Viewing the SVG graph in a browser\n\nIf you don't pipe the output of csv2svg, the graph is automatically displayed in your browser.\nFor increasing readability the graph reacts to mouse hovering.\n\n```cli\napp_whose_output_is_csv | csv2svg\n```\n\n```cli\ncsv2svg \u003c some/file.csv\n```\n### Making a file from the SVG graph\n\n```cli\napp_whose_output_is_csv | csv2svg \u003e some/file.svg\n```\n\n```cli\ncsv2svg \u003c some/file.csv \u003e some/file.svg\n```\n\n## Example\n\nThe `examples/irregular-times.csv` files contains this:\n\n```csv\ntime,something,another thing,a third one,whatever,bof\n2020-12-25T11:24:49Z,580,,798,,\n2020-12-26T12:00:20Z,200,2784,,,\n2020-12-27T12:00:22Z,300,,7398,,826\n2020-12-28T12:21:27Z,400,4282,,,1125\n2020-12-29T16:13:49Z,220,4720,1409,6885,3162\n2020-12-29T17:36:38Z,700,4920,1209,6730,4228\n2020-12-29T21:43:01Z,800,4320,401,6737,2328\n2020-12-30T06:42:39Z,920,4134,209,6856,2222\n2020-12-30T07:41:22Z,1200,4136,410,6937,2481\n2020-12-30T21:43:01Z,1300,2322,414,,4272\n```\n\nIt may be used with no configuration:\n\n```cli\ncsv2svg \u003c examples/irregular-times.csv\n```\n\nwhich produces this:\n\n![irregular-times](examples/irregular-times.png)\n\n## Progress\n\n**Warning: still a work in project, expect disappointment**\n\n* [x] most basic features\n* [x] time abscissa\n* [x] integer abscissa\n* [ ] time stripes\n* [ ] bar graph on discrete non-time x\n* [ ] float abscissa\n* [ ] float y values\n* [ ] disjoint scales\n* [ ] Windows compatibility (if somebody really wants it)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCanop%2Fcsv2svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCanop%2Fcsv2svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCanop%2Fcsv2svg/lists"}