D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
aaizemberg
Full window
Github gist
word cloud
<!DOCTYPE html> <html> <head> <script src="https://d3js.org/d3.v3.min.js"></script> <meta charset="utf-8"> <title>word cloud (delicious style)</title> </head> <body> <script> var size = d3.scale.linear().domain([1,9]).range([10,30]); /** var datos = [{"palabra":"que","cant":43}, {"palabra":"de","cant":26}, {"palabra":"y","cant":26}, {"palabra":"la","cant":25}, {"palabra":"los","cant":20}, {"palabra":"a","cant":16}, {"palabra":"el","cant":16}, {"palabra":"en","cant":13}, {"palabra":"no","cant":12}, {"palabra":"se","cant":11}, {"palabra":"lo","cant":10}, **/ var datos = [{"palabra":"argentinos","cant":9}, {"palabra":"con","cant":9}, {"palabra":"es","cant":9}, {"palabra":"cuando","cant":8}, {"palabra":"pero","cant":8}, {"palabra":"por","cant":8}, {"palabra":"porque","cant":8}, {"palabra":"ayer","cant":7}, {"palabra":"para","cant":6}, {"palabra":"te","cant":6}, {"palabra":"ustedes","cant":6}, {"palabra":"verdad","cant":6}, {"palabra":"ahí","cant":5}, {"palabra":"como","cant":5}, {"palabra":"equipo","cant":5}, {"palabra":"primero","cant":5}, {"palabra":"ser","cant":5}, {"palabra":"también","cant":5}, {"palabra":"todo","cant":5}, {"palabra":"un","cant":5}, {"palabra":"yo","cant":5}, {"palabra":"hoy","cant":4}, {"palabra":"más","cant":4}, {"palabra":"millones","cant":4}, {"palabra":"nos","cant":4}, {"palabra":"40","cant":3}, {"palabra":"acá","cant":3}, {"palabra":"así","cant":3}, {"palabra":"decían","cant":3}, {"palabra":"eso","cant":3}, {"palabra":"están","cant":3}, {"palabra":"habían","cant":3}, {"palabra":"han","cant":3}, {"palabra":"las","cant":3}, {"palabra":"le","cant":3}, {"palabra":"llamé","cant":3}, {"palabra":"me","cant":3}, {"palabra":"mí","cant":3}, {"palabra":"orgullo","cant":3}, {"palabra":"partido","cant":3}, {"palabra":"romero","cant":3}, {"palabra":"sabella","cant":3}, {"palabra":"saben","cant":3}, {"palabra":"si","cant":3}, {"palabra":"sí","cant":3}, {"palabra":"siempre","cant":3}, {"palabra":"suplente","cant":3}, {"palabra":"vos","cant":3}, {"palabra":"adentro","cant":2}, {"palabra":"al","cant":2}, {"palabra":"alejandro","cant":2}, {"palabra":"algo","cant":2}, {"palabra":"argentina","cant":2}, {"palabra":"bilardo","cant":2}, {"palabra":"boca","cant":2}, {"palabra":"colores","cant":2}, {"palabra":"después","cant":2}, {"palabra":"dónde","cant":2}, {"palabra":"él","cant":2}, {"palabra":"eras","cant":2}, {"palabra":"esa","cant":2}, {"palabra":"estás","cant":2}, {"palabra":"fútbol","cant":2}, {"palabra":"gana","cant":2}, {"palabra":"ganado","cant":2}, {"palabra":"garra","cant":2}, {"palabra":"gracias","cant":2}, {"palabra":"hablen","cant":2}, {"palabra":"hermano","cant":2}, {"palabra":"héroe","cant":2}, {"palabra":"les","cant":2}, {"palabra":"mirá","cant":2}, {"palabra":"muchachos","cant":2}, {"palabra":"muchas","cant":2}, {"palabra":"muchos","cant":2}, {"palabra":"nada","cant":2}, {"palabra":"nombre","cant":2}, {"palabra":"pasión","cant":2}, {"palabra":"pipita","cant":2}, {"palabra":"pueden","cant":2}, {"palabra":"puesta","cant":2}, {"palabra":"quería","cant":2}, {"palabra":"recibirlos","cant":2}, {"palabra":"sentí","cant":2}, {"palabra":"tampoco","cant":2}, {"palabra":"tenemos","cant":2}, {"palabra":"tiene","cant":2}, {"palabra":"todos","cant":2}, {"palabra":"una","cant":2}, {"palabra":"uno","cant":2}, {"palabra":"unos","cant":2}, {"palabra":"20","cant":1}, {"palabra":"365","cant":1}, {"palabra":"abracé","cant":1}, {"palabra":"abrazo","cant":1}, {"palabra":"absolutamente","cant":1}, {"palabra":"acompañando","cant":1}, {"palabra":"acompañarlos","cant":1}, {"palabra":"adelante","cant":1}, {"palabra":"adversidad","cant":1}, {"palabra":"afuera","cant":1}, {"palabra":"agarrarse","cant":1}, {"palabra":"ahora","cant":1}, {"palabra":"algunos","cant":1}, {"palabra":"allá","cant":1}, {"palabra":"alto","cant":1}, {"palabra":"anda","cant":1}, {"palabra":"año","cant":1}, {"palabra":"antes","cant":1}, {"palabra":"argentino","cant":1}, {"palabra":"arquero","cant":1}, {"palabra":"atajó","cant":1}, {"palabra":"bancarlas","cant":1}, {"palabra":"bien","cant":1}, {"palabra":"blanca","cant":1}, {"palabra":"brindado","cant":1}, {"palabra":"brindarse","cant":1}, {"palabra":"bueno","cant":1}, {"palabra":"cabeza","cant":1}, {"palabra":"calidad","cant":1}, {"palabra":"calles","cant":1}, {"palabra":"camiseta","cant":1}, {"palabra":"campo","cant":1}, {"palabra":"cancha","cant":1}, {"palabra":"capaces","cant":1}, {"palabra":"capacidad","cant":1}, {"palabra":"capaz","cant":1}, {"palabra":"cara","cant":1}, {"palabra":"celeste","cant":1}, {"palabra":"chiquito","cant":1}, {"palabra":"cómo","cant":1}, {"palabra":"confiaste","cant":1}, {"palabra":"controle","cant":1}, {"palabra":"copa","cant":1}, {"palabra":"coraje","cant":1}, {"palabra":"cosas","cant":1}, {"palabra":"créanme","cant":1}, {"palabra":"creíamos","cant":1}, {"palabra":"creían","cant":1}, {"palabra":"criticaban","cant":1}, {"palabra":"cuales","cant":1}, {"palabra":"daban","cant":1}, {"palabra":"darles","cant":1}, {"palabra":"darte","cant":1}, {"palabra":"decir","cant":1}, {"palabra":"decirte","cant":1}, {"palabra":"defendieron","cant":1}, {"palabra":"dejando","cant":1}, {"palabra":"del","cant":1}, {"palabra":"demostraron","cant":1}, {"palabra":"días","cant":1}, {"palabra":"digas","cant":1}, {"palabra":"dignidad","cant":1}, {"palabra":"dije","cant":1}, {"palabra":"dios","cant":1}, {"palabra":"dos","cant":1}, {"palabra":"ejemplo","cant":1}, {"palabra":"emocioné","cant":1}, {"palabra":"era","cant":1}, {"palabra":"escuchaba","cant":1}, {"palabra":"ese","cant":1}, {"palabra":"esperando","cant":1}, {"palabra":"está","cant":1}, {"palabra":"esto","cant":1}, {"palabra":"estoy","cant":1}, {"palabra":"estrella","cant":1}, {"palabra":"exitismo","cant":1}, {"palabra":"felicitarlo","cant":1}, {"palabra":"felicito","cant":1}, {"palabra":"final","cant":1}, {"palabra":"flaco","cant":1}, {"palabra":"fondo","cant":1}, {"palabra":"fueron","cant":1}, {"palabra":"fuerza","cant":1}, {"palabra":"ganándole","cant":1}, {"palabra":"ganar","cant":1}, {"palabra":"generar","cant":1}, {"palabra":"gentes","cant":1}, {"palabra":"golpe","cant":1}, {"palabra":"habremos","cant":1}, {"palabra":"hasta","cant":1}, {"palabra":"hay","cant":1}, {"palabra":"hecho","cant":1}, {"palabra":"hermana","cant":1}, {"palabra":"hicieras","cant":1}, {"palabra":"higuaín","cant":1}, {"palabra":"hijo","cant":1}, {"palabra":"hincha","cant":1}, {"palabra":"hinchas","cant":1}, {"palabra":"hubiéramos","cant":1}, {"palabra":"iba","cant":1}, {"palabra":"importó","cant":1}, {"palabra":"individualidades","cant":1}, {"palabra":"inmenso","cant":1}, {"palabra":"juega","cant":1}, {"palabra":"juego","cant":1}, {"palabra":"jugadores","cant":1}, {"palabra":"juntarse","cant":1}, {"palabra":"lado","cant":1}, {"palabra":"leones","cant":1}, {"palabra":"lindo","cant":1}, {"palabra":"lograr","cant":1}, {"palabra":"madre","cant":1}, {"palabra":"magnética","cant":1}, {"palabra":"mangos","cant":1}, {"palabra":"mascherano","cant":1}, {"palabra":"médico","cant":1}, {"palabra":"micrófono","cant":1}, {"palabra":"miré","cant":1}, {"palabra":"miren","cant":1}, {"palabra":"muchísimas","cant":1}, {"palabra":"mucho","cant":1}, {"palabra":"ni","cant":1}, {"palabra":"ningún","cant":1}, {"palabra":"ninguno","cant":1}, {"palabra":"nuestro","cant":1}, {"palabra":"nuestros","cant":1}, {"palabra":"olvidados","cant":1}, {"palabra":"otro","cant":1}, {"palabra":"otros","cant":1}, {"palabra":"padre","cant":1}, {"palabra":"país","cant":1}, {"palabra":"partidos","cant":1}, {"palabra":"pasan","cant":1}, {"palabra":"pasar","cant":1}, {"palabra":"pase","cant":1}, {"palabra":"pasó","cant":1}, {"palabra":"patada","cant":1}, {"palabra":"penales","cant":1}, {"palabra":"permita","cant":1}, {"palabra":"permitieron","cant":1}, {"palabra":"pierden","cant":1}, {"palabra":"pincha","cant":1}, {"palabra":"platense","cant":1}, {"palabra":"podía","cant":1}, {"palabra":"pone","cant":1}, {"palabra":"poner","cant":1}, {"palabra":"presidenta","cant":1}, {"palabra":"principio","cant":1}, {"palabra":"pusieron","cant":1}, {"palabra":"qué","cant":1}, {"palabra":"querido","cant":1}, {"palabra":"quiero","cant":1}, {"palabra":"realmente","cant":1}, {"palabra":"recibiste","cant":1}, {"palabra":"recomendaría","cant":1}, {"palabra":"república","cant":1}, {"palabra":"resonancia","cant":1}, {"palabra":"rodeada","cant":1}, {"palabra":"rodeados","cant":1}, {"palabra":"salir","cant":1}, {"palabra":"segunda","cant":1}, {"palabra":"segura","cant":1}, {"palabra":"semana","cant":1}, {"palabra":"sentido","cant":1}, {"palabra":"sentimientos","cant":1}, {"palabra":"sentimos","cant":1}, {"palabra":"sentir","cant":1}, {"palabra":"serio","cant":1}, {"palabra":"sintieron","cant":1}, {"palabra":"sobre","cant":1}, {"palabra":"solamente","cant":1}, {"palabra":"somos","cant":1}, {"palabra":"son","cant":1}, {"palabra":"soy","cant":1}, {"palabra":"su","cant":1}, {"palabra":"subcampeones","cant":1}, {"palabra":"suelo","cant":1}, {"palabra":"sumarnos","cant":1}, {"palabra":"tan","cant":1}, {"palabra":"tapado","cant":1}, {"palabra":"taparon","cant":1}, {"palabra":"tenés","cant":1}, {"palabra":"tengo","cant":1}, {"palabra":"toda","cant":1}, {"palabra":"traído","cant":1}, {"palabra":"tripera","cant":1}, {"palabra":"triunfos","cant":1}, {"palabra":"trompada","cant":1}, {"palabra":"trompearon","cant":1}, {"palabra":"valores","cant":1}, {"palabra":"vas","cant":1}, {"palabra":"vení","cant":1}, {"palabra":"venían","cant":1}, {"palabra":"venir","cant":1}, {"palabra":"verdaderos","cant":1}, {"palabra":"vi","cant":1}, {"palabra":"vida","cant":1}, {"palabra":"vimos","cant":1}, {"palabra":"virgen","cant":1}, {"palabra":"viví","cant":1}, {"palabra":"volcó","cant":1}, {"palabra":"vuelto","cant":1}]; d3.select("body") .selectAll("span") .data(datos) .enter() .append("span") .text(function(d) { return d.palabra + " "; } ) .style("font-size", function(d,i) { return size(d.cant)+"px"; }); </script> </body> </html>
Modified
http://d3js.org/d3.v3.min.js
to a secure url
https://d3js.org/d3.v3.min.js