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:
>
--
Mit freundlichen Grüßen
Dietrich Streifert
--
Visionet GmbH
Firmensitz: Am Weichselgarten 7, 91058 Erlangen
Registergericht: Handelsregister Fürth, HRB 6573
Geschäftsführer: Stefan Lindner
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel