nsform",
      "translate(" + d3.event.translate + ")"
      + " scale(" + d3.event.scale + ")");
}

d3.json("{{ url_for('static', filename = 'data/topic_cloud.json') }}", function(error, cloud) {
  if (error) throw error;

  force
      .nodes(cloud.nodes)
      .links(cloud.links)
      .start();

  var link = svg.selectAll(".link")
      .data(cloud.links)
    .enter().append("line")
      .attr("class", "link")
      .style("stroke-width", 0);

  var node = svg.selectAll(".node")
      .data(cloud.nodes