D3 (now in v4) is a great bit of gear. The TW plugin is really currently only a proof of concept.
Personally I'd use it extensively to make Word Clouds IF it were as bit easier to integrate into TiddlyWiki. To achieve that we need someone tech. happy to do the needed work. Especially methods to assemble Data to feed to it in an appropriate format.
Oh yes that would be great, I will then adapt the 2 demo widget and can add some others.
@BurningTreeCOh yes that would be great, I will then adapt the 2 demo widget and can add some others.Thanks
Hi, is the svg._groups[0][0] correct?
I changed that in the barwidget, too , but just because it made an error disappear. I was sceptical if it was the right way..
I would investigate that
BTC
I'm not sure to understand (sorry, I'm a beginner)...you mean that you just need to copy/paste the content of d3.min.js in $:/plugins/tiddlywiki/d3/d3.js ?there is no adaptation / modification ?
maybe it's this line in the widget
var diameter = +svg.attr("width");
I have updated http://d3jsv5trial.tiddlyspot.com
var root = d3.hierarchy(root)
.sum(function(d) { return d.size; })
.sort(function(a, b) { return b.value - a.value; })
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b070e47f-2584-4ed2-940c-47b2b2b89934%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
CirclePackWidget.prototype.execute = function() {
// Get the parameters from the attributes
this.myDataTiddler = this.getAttribute("data");
this.myTiddlerFilter = this.getAttribute("filter");
};
------------
The jsondata can be "filled" like so:
jsondata["entry1"] = "test";
or using the title stored in a variable:
var title = tiddler.fields.title;
jsondata[title] = ...
---------------------
I'm not sure what's the best way to do this, there's also $tw.wiki.getTiddlerAsJson in $:/core/modules/wiki.js - seems more comfortable to use:exports.getTiddlerAsJson = function(title) { var tiddler = this.getTiddler(title); if(tiddler) { var fields = Object.create(null); $tw.utils.each(tiddler.fields,function(value,name) { fields[name] = tiddler.getFieldString(name); }); return JSON.stringify(fields); } else { return JSON.stringify({title: title}); } };
...
What I'm thinking about is, what the jsondata should look like to create a meaningful, expressive tiddler graph
In your CirclePack for example, which tiddler field should create a group? I think a subfilter by tag could do that
Simon
I would like this data to be generated by the content of TiddlyWiki