Thank you a lot Dietrich,
I try it again, but at the moment i'm using protovis, another contrib
for qooxdoo.

the sintax is not simple,  but i see that is a very powerfull plotting
engine and the with the test i made show that have a good memory
managment.


Regards


Il giorno gio, 14/10/2010 alle 10.48 +0200, Dietrich Streifert ha
scritto:
> hmm let's see if I can isolate how I've used it:
> 
> Initialization:
> 
> var data = [];
> data.push([1, 20]);
> data.push([2, 30]);
> data.push([3, 40]);
> data.push([4, 20]);
> 
> grafico.setData(
>          { data: data,
>            label: 'my data label'
>          }
> );
> 
> 
> Plotting:
> 
> You have to call the plot method AFTER the dom elements of chart.Bar are 
> created and added, otherwise the div which flotr can use to draw to does 
> not yet exist. You have to do something like:
> 
> grafico.addListener('appear', function() {
>      this.plot();
> });
> 
> Generally: please have a look into the method createParams within 
> chart.AbstractChart and chart.Bar. This is where mapping between the 
> properies of the qooxdoo classes and flotr params is done. In chart.Bar 
> you can see that createParams of chart.AbstractChart is overriden. First 
> the base class method is called (this.base(arguments)) and then the bar 
> specific params for flotr are appended.
> 
> You should consider using the trunk version of flotr from
> 
> http://code.google.com/p/flotr/source/browse/trunk/flotr/flotr/prototype/flotr.js
> 
> While development goes on (checkins until last month including my 
> contribution http://code.google.com/p/flotr/source/detail?r=100) the 
> downloadable distro is still dated Jan. 2009:
> 
>      http://code.google.com/p/flotr/source/list
> 
> 
> 
> Am 13.10.2010 14:16, schrieb Simone Pandolfo:
> > Sorry for the omissis, Dietrich ,yes i'm using your implementation.
> >
> > The frist time i try to get it working i start with BenchmarkBar()
> > and flotr show me the chart, after trying to understand how to use the
> > data field and other configuration, i start to use the abstract and see
> > that if i pass tuple of data it make a line graph, was the simplest
> > example that i can create the last time.
> >
> > This time i can't get it working and don't understand why.
> >
> > I need to add the chart to another element?
> > The composite element that abstractchart extend , give to flotr the
> > requested div?
> >
> > i have tried to add the Height but nothing change, even with Bar()
> >
> >
> >
> > Il giorno mer, 13/10/2010 alle 13.24 +0200, Dietrich Streifert ha
> > scritto:
> >
> 



------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to