Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 26th, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 40  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var linechart = Raphael(document.getElementById('holder')).
  2.    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]], {
  3.     shade:true,
  4.     smooth:true,
  5.     axisxstep:5,
  6.     axis:"0 0 1 1"
  7. });
  8.  
  9.  
  10. linechart.axis[0].text.items[3].attr('text','kjfd');
  11. linechart.axis[1].text.hide();
  12. linechart.items[0][1].darker();
  13.  
  14. var options = {
  15.   gutter: 10,
  16.   symbol: "",
  17.   colors: Raphael.fn.g.colors,
  18.   nostroke: false,
  19.   smooth: false;
  20.   shade: false,
  21.   dash: "",
  22.   axis: "",
  23.   axisxstep: 1,
  24.   axisystep: 1
  25. };
  26.  
  27. // http://jburrows.wordpress.com/2011/02/21/documentation-for-graphael-g-line-js/
  28. // http://alexyoung.github.com/ico/examples.html