shawnbot / sparky Goto Github PK
View Code? Open in Web Editor NEWBecause life is too short for ugly sparklines.
Home Page: http://prag.ma/code/sparky/
License: MIT License
Because life is too short for ugly sparklines.
Home Page: http://prag.ma/code/sparky/
License: MIT License
Sparklines are intense, simple, word-sized graphics. Sparky is a JavaScript library for drawing them dynamically in your web browser. This project isn't actively developed, but feel free to fork, modify or fix, and I'll (@shawnbot) happily accept pull requests. Enjoy!
the paper set for bars seems to be recursive
On line 225 :
bars.push(bars);
should probably be :
bars.push(bar);
In Chrome 23.0.1271.95 m when you visit another site then hit the back button, the sparklines do not render.
Are you open to adding this to NPM for use with something like browserify? Or at least just installing into node_modules via npm?
sparky.sparkline()
sparky.presets
sparky.utils
Error: Problem parsing d="M,0,0" raphael.js:5773
$ raphael.js:5773
setFillAndStroke raphael.js:6111
R._engine.path raphael.js:6416
paperproto.path raphael.js:3723
sparky.sparkline
It fails like this for any set of data points that has all the same value, ie: [2,2,2,2,2,2].
A slight variation like [1.999, 2, 2, 2, 2, 2] works.
ALSO:
I'm sure you meant sparky.presets here: https://github.com/shawnbot/sparky/blob/master/src/sparky.js#L116
Great library though. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.