[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
sup again, graphfag here(https://4ch.be/wsr/thread/3106 9 fo
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /wsr/ - Worksafe Requests

Thread replies: 2
Thread images: 1
File: 1422039342165.jpg (309 KB, 680x1024) Image search: [Google]
1422039342165.jpg
309 KB, 680x1024
sup again, graphfag here(https://4ch.be/wsr/thread/31069 for those that don't know who the fuck i am), been trying to get something working with d3, but i just can't figure it out( likely due to my newness in js ). so today i'm requesting one of you fine /g/ents to spoonfeed me the code(yes i know, i'm sorry) heres what would be needed:
-force layout
-Have the data be in json format something like (correct my json format as needed, still new to it as well):
game: "fnaf"
___id: 0
___targets:
____1337
_____description:"maymay"
____404
_____description:"pepe"
___image: "dankapedia.edu/fuck_boy.jpeg2"
___site: "dankapedia.edu/fuck_boys"
-(not high priority)make nodes grow to the size of the name
-have it so nodes won't block each other
-have when clicking on node it shows the description and link to the site
nothing else i can think up atm, thanks to who ever does this in advance
>>
if who ever want to complete this wants more question, just go to http://boards.4chan.org/wsr/thread/40412#&togetherjs=graphfagquickchat
with
javascript:(function(e,t,n){var r=function(){var t=function(e){e=e||10;var t='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV0123456789';var n='';for(var r=0;r<e;r++){n+=t.charAt(Math.floor(Math.random()*t.length))}return n},n=t(),r=e.prompt('Type session ID to join or create\n (default is \'together\')')||'together',i={reason:'started',shareId:r,running:true,date:Date.now(),sessionId:n};if(typeof sessionStorage['togetherjs-session.status']!=='undefined'){i=JSON.parse(sessionStorage['togetherjs-session.status']);i.shareId=r;i.running=true}i=JSON.stringify(i);return i}();sessionStorage['togetherjs-session.status']=r;if(typeof TogetherJS!=='undefined'){if(TogetherJS._loaded){TogetherJS.on('close',function(){TogetherJS(e)});TogetherJS(e)}else{TogetherJS(e)}}else{var i=t.createElement('script'),s='https://togetherjs.com/togetherjs-min.js';i.setAttribute('src',s);t.body.appendChild(i)}})(window,document)
Thread replies: 2
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.