Giter Site home page Giter Site logo

csv2svg's Introduction

MIT Latest Version docs Chat on Miaou

csv2svg

Build a SVG graph from a csv document.

Installation

You must have Rust installed. Do

cargo install csv2svg

Usage

Viewing the SVG graph in a browser

If you don't pipe the output of csv2svg, the graph is automatically displayed in your browser. For increasing readability the graph reacts to mouse hovering.

app_whose_output_is_csv | csv2svg
csv2svg < some/file.csv

Making a file from the SVG graph

app_whose_output_is_csv | csv2svg > some/file.svg
csv2svg < some/file.csv > some/file.svg

Example

The examples/irregular-times.csv files contains this:

time,something,another thing,a third one,whatever,bof
2020-12-25T11:24:49Z,580,,798,,
2020-12-26T12:00:20Z,200,2784,,,
2020-12-27T12:00:22Z,300,,7398,,826
2020-12-28T12:21:27Z,400,4282,,,1125
2020-12-29T16:13:49Z,220,4720,1409,6885,3162
2020-12-29T17:36:38Z,700,4920,1209,6730,4228
2020-12-29T21:43:01Z,800,4320,401,6737,2328
2020-12-30T06:42:39Z,920,4134,209,6856,2222
2020-12-30T07:41:22Z,1200,4136,410,6937,2481
2020-12-30T21:43:01Z,1300,2322,414,,4272

It may be used with no configuration:

csv2svg < examples/irregular-times.csv

which produces this:

irregular-times

Progress

Warning: still a work in project, expect disappointment

  • most basic features
  • time abscissa
  • integer abscissa
  • time stripes
  • bar graph on discrete non-time x
  • float abscissa
  • float y values
  • disjoint scales
  • Windows compatibility (if somebody really wants it)

I might incorporate features you'd like to have, or fix the problems you encounter, provided you tell me about them on Miaou.

csv2svg's People

Contributors

canop avatar stargateur avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.