From 2179d3fa705ad0ea5750a8487dc07bd3cd5c4451 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Fri, 2 Aug 2013 22:05:39 +0100 Subject: [PATCH] Update D3 demo wiki --- editions/d3demo/tiddlers/CloudData.tid | 44 +++++++++++++++++++++++++ editions/d3demo/tiddlers/HelloThere.tid | 5 ++- editions/d3demo/tiddlers/spiral.tid | 3 ++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 editions/d3demo/tiddlers/CloudData.tid create mode 100644 editions/d3demo/tiddlers/spiral.tid diff --git a/editions/d3demo/tiddlers/CloudData.tid b/editions/d3demo/tiddlers/CloudData.tid new file mode 100644 index 000000000..890f2c3f5 --- /dev/null +++ b/editions/d3demo/tiddlers/CloudData.tid @@ -0,0 +1,44 @@ +title: CloudData +type: application/json + +[ + {"text": "Tokyo/Yokohama", "size": 33.200}, + {"text": "New York Metro", "size": 17.800}, + {"text": "Sao Paulo", "size": 17.700}, + {"text": "Seoul/Incheon", "size": 17.500}, + {"text": "Mexico City", "size": 17.400}, + {"text": "Osaka/Kobe/Kyoto", "size": 16.425}, + {"text": "Manila", "size": 14.750}, + {"text": "Mumbai", "size": 14.350}, + {"text": "Delhi", "size": 14.300}, + {"text": "Jakarta", "size": 14.250}, + {"text": "Lagos", "size": 13.400}, + {"text": "Kolkata", "size": 12.700}, + {"text": "Cairo", "size": 12.200}, + {"text": "Los Angeles", "size": 11.789}, + {"text": "Buenos Aires", "size": 11.200}, + {"text": "Rio de Janeiro", "size": 10.800}, + {"text": "Moscow", "size": 10.500}, + {"text": "Shanghai", "size": 10.000}, + {"text": "Karachi", "size": 9.800}, + {"text": "Paris", "size": 9.645}, + {"text": "Istanbul", "size": 9.000}, + {"text": "Nagoya", "size": 9.000}, + {"text": "Beijing", "size": 8.614}, + {"text": "Chicago", "size": 8.308}, + {"text": "London", "size": 8.278}, + {"text": "Shenzhen", "size": 8.000}, + {"text": "Essen/Dusseldorf", "size": 7.350}, + {"text": "Tehran", "size": 7.250}, + {"text": "Bogota", "size": 7.000}, + {"text": "Lima", "size": 7.000}, + {"text": "Bangkok", "size": 6.500}, + {"text": "Johannesburg/East Rand", "size": 6.000}, + {"text": "Chennai", "size": 5.950}, + {"text": "Taipei", "size": 5.700}, + {"text": "Baghdad", "size": 5.500}, + {"text": "Santiago", "size": 5.425}, + {"text": "Bangalore", "size": 5.400}, + {"text": "Hyderabad", "size": 5.300}, + {"text": "St Petersburg", "size": 5.300} +] diff --git a/editions/d3demo/tiddlers/HelloThere.tid b/editions/d3demo/tiddlers/HelloThere.tid index e2b236d6a..8891b4543 100644 --- a/editions/d3demo/tiddlers/HelloThere.tid +++ b/editions/d3demo/tiddlers/HelloThere.tid @@ -4,7 +4,10 @@ This is a demo of TiddlyWiki5 incorporating a plugin for the [[D3.js]] visualiza ! Word Cloud -<$d3cloud/> +<$d3cloud data="CloudData" spiral={{$:/spiral}}/> + + +//[[Raw data|CloudData]]// ! Bar Chart diff --git a/editions/d3demo/tiddlers/spiral.tid b/editions/d3demo/tiddlers/spiral.tid new file mode 100644 index 000000000..62b6b38fd --- /dev/null +++ b/editions/d3demo/tiddlers/spiral.tid @@ -0,0 +1,3 @@ +title: $:/spiral + +archimedean \ No newline at end of file