HighDots Forums  

bluff (grafici)

Javascript (Italian) Il linguaggio JavaScript (it.comp.lang.javascript)


Discuss bluff (grafici) in the Javascript (Italian) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Il signor Lebowsky
 
Posts: n/a

Default bluff (grafici) - 10-10-2009 , 06:32 AM






ciao a tutti,

devo realizzare dei grafici in js.

ho provato raphael, ma questo tipo di grafico che servirebbe a me
http://raphaeljs.com/analytics.html
non funziona con piu di una riga di grafico (fa vedere i tooltip
dell'ultima riga creata e solo dell'ultima).

ho scaricato Bluff (http://bluff.jcoglan.com/) che anche se piu bruttino
fa al caso mio. Su FF nessun problema ma su IE mi da questo errore:

Error: Object doesn't support this property or method
riga 2341 del file bluff-src.js
this._ctx = this._canvas.getContext('2d');

mi sembra di aver incluso tutto (in quest ordine)
1. excanvas.js
2. js-class.js
3. bluff-src.js

poi ho creato nell'html:
<canvas id="example" width="400" height="300"></canvas>
<script type="text/javascript">
var g = new Bluff.Line('example', '400x300');
g.title = 'My Graph';
g.tooltips = true;
g.theme_37signals();
g.data("Apples", [1, 2, 3, 4, 4, 3]);
g.data("Oranges", [4, 8, 7, 9, 8, 9]);
g.data("Watermelon", [2, 3, 1, 5, 6, 8]);
g.data("Peaches", [9, 9, 10, 8, 7, 9]);
g.labels = {0: '2003', 2: '2004', 4: '2005'};
g.draw();
</script>



Qulcuno sa darmi una dritta?

Reply With Quote
  #2  
Old   
Andrea Scartabelli
 
Posts: n/a

Default Re: bluff (grafici) - 10-11-2009 , 09:30 AM






Il signor Lebowsky wrote:
Quote:
ciao a tutti,

devo realizzare dei grafici in js.
[...]

Scusa se taglio il tutto, ma non potresti levarti di torno tutti i
problemi di compatibilita' e usare qualcosa come le Google Chart API?

http://code.google.com/intl/it/apis/chart/

Reply With Quote
  #3  
Old   
michelangelo giacomelli
 
Posts: n/a

Default Re: bluff (grafici) - 10-12-2009 , 05:23 AM



quando si parla di grafici io mi sono trovato decentemente solo con
google chart api e protochart.
http://deensoft.com/lab/protochart/
http://code.google.com/intl/it-IT/apis/chart/

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.