Hi Okido,
Some links would have speed up the response a lot.
I had a short look to the resources I found with a / several google
search(es). So I may have land at the wrong spots. but anyway
On 29 Aug., 17:55, okido <
bkn...@gmail.com> wrote:
> I am thinking about jStat.js en psMathStats. jStat uses the flot.js lib, I
http://www.jstat.org/
there is no API documentation at
http://www.jstat.org/documentation so
to find out how it works, you'll need to look at the source code.
Hmmm...
http://code.google.com/p/flot/downloads/detail?name=flot-0.6.zip&can=2&q=
seems, there is no development anymore.
> would preferably use one of the two libs mentioned here below.
If I understand this right, you'd prefer d3.js or highchart/stocks.js.
right?
d3.js is a very new "low level / extremely powerfull" library, which
imo can be used to create "high level" libraries, like highchart.
but ....
you'll have to do a lot on your own.
see:
https://github.com/mbostock/d3/wiki/Gallery near the end of the
page is the "Libraries" section, where
nvd3.com http://novus.github.com/nvd3/
is my faforite. It is quite young too, but imo has a lot of potential.
(the focus of the creators
http://www.novus.com/ seems to be stock
data too :)
> My use case is to analyse datasets and draw graphs, this is done with d3.js
> or highchart/stocks.js that both function as lib in TW.
IMO it depends a lot on your data.
If you have to deal with stock data highchart/stocks.js would be a
good choice, because there charts seem to be specialiced for this type
of data.
If you have a different dataset. d3.js have a lot of examples (https://
github.com/mbostock/d3/wiki/Gallery) but as mentioned allready, it is
quite low level. So there will be a lot of programming involved.
> CSV files are imported as tiddlers and the columns are cooked to an array.
> The array is than used as input for the graph script that runs with
> inlinejavascript and presents the graph in a tiddler.
> To get nice prints I export the *.js and an index.htm file with the
> graphs/text and either print it to paper or as pdf.
>
> Any help would be nice, Okido
As I wrote. Your data is key.
http://www.jstat.org can be used without the plotting library. So you
can use it to create your dataset to be drawn with an other
library. ... I personally would search for a math library with better
documentation and development going on. Otherwise you may end up
fixing the library too.
If a charting library creates some type of SVG diagram, it would be
easy to save the resulting diagram as a svg tiddler. This tiddler
could be used with the <<image>> macro inside any other tiddler. .....
So printing it with high quality would be possible ...
====
Some time ago I did a short proof of concept [1] with jsxgraph [3]
library which imo is great, if you need interactive charts. (I do like
the interactive nature a lot :)
The showcases [2] are quite impressive and the theorethical /
scientific background of the library should be OK. The size is about
100kByte (only) ... I'm not sure about printing here
====
Conclusion:
d3.js is very powerfull but much work to do on your own.
nvd3 library uses d3.js looks promising but is quite new.
highchart/stocks.js looks good for stock data. print is for the chart
only.
jsxgraph is good for interactive charts, for users to play with.
The way, to include those into TW / TiddlySpace will be very similar
to all of them. The way using them highly depends on the different
APIs the libraries are using.
hope this helps
mario
[1]
http://jsxgraph.tiddlyspace.com/
[2]
http://jsxgraph.uni-bayreuth.de/wiki/index.php/Showcases
[3]
http://jsxgraph.uni-bayreuth.de/wp/