Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/concutere/sg
SG.js - Slopegraphs for the web
https://github.com/concutere/sg
Last synced: 3 months ago
JSON representation
SG.js - Slopegraphs for the web
- Host: GitHub
- URL: https://github.com/concutere/sg
- Owner: concutere
- License: mit
- Created: 2013-12-05T10:54:40.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-15T22:20:17.000Z (about 11 years ago)
- Last Synced: 2024-08-01T12:34:49.243Z (6 months ago)
- Language: JavaScript
- Homepage: http://concutere.com/sg/sg.html
- Size: 265 KB
- Stars: 45
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE.txt
Awesome Lists containing this project
- awesome-starred - concutere/sg - SG.js - Slopegraphs for the web (others)
README
SG - a library for creating slopegraphs
==
(see [here](http://concutere.com/sg/sg.html) for live samples)
sg.js creates SVG content, is dependency-free and should work in modern browsers with SVG support.
To use, call SG(jsonData, svgElement, settings). Data is expected as a json array with 'id', 'set' & 'val' attributes. Settings are optional but you most likely will want to set at least textWidth, slopeWidth & height. See sg.html for samples.
So far the fitting logic has so far been kept relatively simple. Improved fitting algorithms & related options are the current focus, trying to provide better layout without killing performance.
==
Happy graphing!
and of course, thank you [Edward Tufte](http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0003nk)