I have figured out the remaining issues with jqPlot.
http://tobi.oetiker.ch/test/QxJqPlot/
now interactive graphs work too (I had exposed a problem in jqPlot
by dynamically loading plugins, but I found a workaround).
I also solved the problem of automatically including the jqPlot
files into any project using the
qxjqplot.Plot
contrib. very simple actually ...
* place a copy of jqPlot into source/resource/jqPlot
* add #asset(jqPlot/*) to the top of the
source/class/qxjqplot/Plot.js file
* whenever accessing a jqPlot component use the ResourceManager
to resolve the uri:
var src =
qx.util.ResourceManager.getInstance().toUri("jqPlot/jquery.jqplot.js")
To use the plugin, just put the following into your config.json
file:
"libraries" : {
"library" : [{
"manifest" : "contrib://QxJqPlot/trunk/Manifest.json"
}]
},
In your code, the creation of a plot is as simple as:
var plot = new qxjqplot.Plot(
[[4, 25, 13, 22, 14, 17, 15]],
{
title:'Dragable and Trend Line Example',
seriesDefaults: {
isDragable: true,
trendline: {
show: true
}
}
},
['dragable','trendline']
);
container.add(plot);
cheers
tobi
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel