Skip to content

GeoffWilliams/csv2svg_graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

csv2svg_graph

Convert csv to SVG graphs - the easy way!

Features

  • Reads a CSV file and turns it into a line graph
  • Uses pygal
  • Uses lines starting with # as a title
  • Automatically maps CSV headers to the legend
  • Blank lines are automatically skipped

Missing features

This is a very quick and dirty CSV to SVG converter which I wrote because I couldn't for the life of me find a good python tool do to this already.

This tool is pretty basic at the moment and is missing things like better error handling, X-axis labels, different graph types, etc.

If your interested in helping developing this tool, drop me a line!

Usage

$ csv2svg_graph.py --input_file /path/to/csv_file --output_file output_file.svg

Example

Generated graph Generated from a CSV file in the format:

# Command line arguments:-XX:+UseConcMarkSweepGC -Xmx6000m 

used memory, free memory, total memory, xmx
5,242,247,5933
161,86,247,5933
328,116,444,5933
494,156,650,5933
600,394,994,5933
763,231,994,5933
934,610,1544,5933
1055,488,1544,5933
1229,315,1544,5933
1395,148,1544,5933
1554,816,2370,5933
1697,673,2370,5933
1799,571,2370,5933

About

Convert CSV data into svg graphs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages