From f8a8d5192b1e5013d9e2f699be54b072ef39d5f0 Mon Sep 17 00:00:00 2001 From: talasila Date: Wed, 8 Feb 2017 10:13:29 -0500 Subject: Initial OpenECOMP UI/DMaapBC commit Change-Id: Ia492e1b88311b9bed4c31f593b28deaaad73b7e4 Signed-off-by: talasila --- .../src/main/webapp/app/fusion/external/samples/html/js/worddata.min.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 dcae_dmaapbc_webapp/src/main/webapp/app/fusion/external/samples/html/js/worddata.min.js (limited to 'dcae_dmaapbc_webapp/src/main/webapp/app/fusion/external/samples/html/js/worddata.min.js') diff --git a/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/external/samples/html/js/worddata.min.js b/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/external/samples/html/js/worddata.min.js new file mode 100644 index 0000000..6b82746 --- /dev/null +++ b/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/external/samples/html/js/worddata.min.js @@ -0,0 +1 @@ +function dataViz(t){function e(t){var e=d3.select("svg").append("g").attr("id","wordCloudG").attr("transform","translate(210,175)");e.selectAll("text").data(t).enter().append("text").style("font-size",function(t){return 1*t.size+"px"}).style("fill",function(t){return keywords.indexOf(t.text)>-1?"red":"black"}).style("opacity",.75).attr("text-anchor","middle").attr("transform",function(t){return"translate("+[t.x,t.y]+")rotate("+t.rotate+")"}).text(function(t){return t.text})}d3.layout.cloud().size([420,350]).words(t).rotate(function(t){return t.text.length>5?0:90}).fontSize(function(t){return wordScale(t.frequency)}).on("end",e).start()}d3.csv(dataURL,function(t){dataViz(t)}),wordScale=d3.scale.linear().domain([0,100]).range([0,70]).clamp(!0); \ No newline at end of file -- cgit 1.2.3-korg