Skip to content

Instantly share code, notes, and snippets.

@josip
Created March 19, 2012 09:50
Show Gist options
  • Save josip/2105762 to your computer and use it in GitHub Desktop.
Save josip/2105762 to your computer and use it in GitHub Desktop.
Simple, tiny & cute.js
var cute = new STC(canvasContext, {
w: 800,
h: 140,
padding: Number || 20,
axes: false || gradient || "#585858",
grid: false || gradient || "#c0c0c0",
background: false || gradient || "#fff"
});
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