Skip to content

Instantly share code, notes, and snippets.

@jansabbe
Created June 1, 2011 14:27
Show Gist options
  • Save jansabbe/1002387 to your computer and use it in GitHub Desktop.
Save jansabbe/1002387 to your computer and use it in GitHub Desktop.
Creating linecharts with gRaphael
var linechart = Raphael(document.getElementById('holder')).
g.linechart(10,10,400,400,[1,2,3,4,5,6],[[5,4,3,2,1,0],[5,3,4.3,3,2,0]], {
shade:true,
smooth:true,
axisxstep:5,
axis:"0 0 1 1"
});
linechart.axis[0].text.items[3].attr('text','kjfd');
linechart.axis[1].text.hide();
linechart.items[0][1].darker();
var options = {
gutter: 10,
symbol: "",
colors: Raphael.fn.g.colors,
nostroke: false,
smooth: false;
shade: false,
dash: "",
axis: "",
axisxstep: 1,
axisystep: 1
};
// http://jburrows.wordpress.com/2011/02/21/documentation-for-graphael-g-line-js/
// http://alexyoung.github.com/ico/examples.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment