Created
March 19, 2012 09:50
-
-
Save josip/2105762 to your computer and use it in GitHub Desktop.
Simple, tiny & cute.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cute = new STC(canvasContext, { | |
w: 800, | |
h: 140, | |
padding: Number || 20, | |
axes: false || gradient || "#585858", | |
grid: false || gradient || "#c0c0c0", | |
background: false || gradient || "#fff" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cute.plot([ | |
[x, y, label] | |
], { | |
type: "area" || "plot" || "point", | |
fill: gradient || "#d93b3b", | |
stroke: gradient || "#f00", | |
strokeWidth: Number || 2, | |
text: "#f00", | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment