Possible Text Transition Bug in Chrome Browser?

151 views
Skip to first unread message

Guerino1

unread,
Jun 7, 2012, 6:33:01 AM6/7/12
to d3...@googlegroups.com
Hi,

Hi,

Does anyone know if there's a bug in Chrome that manifests itself with text transitions in force directed graph layouts?

I've built the following example: "Force Directed Radial Graph".  

I use the following code to append text to each node in the graph:

      // Append text to Nodes
      node.append("text")
          .attr("x", function(d) { if (d.id==focalNode) { return 0; } else {return 20;} } )
.attr("font-family", "Arial, Helvetica, sans-serif")
          .attr("fill", "Black")
          .attr("dy", ".35em")
          .text(function(d) { return d.name; });


I use the following code to transition text size from 1em to 1.25em:

      function mouseover() {
        d3.select(this).select("circle").transition()
            .duration(250)
.attr("r", function(d,i) { if(d.id==focalNode) {return 75;} else {return 15;} } );
d3.select(this).select("text").transition()
            .duration(250)
.style("font", "bold 1.25em Arial")
.attr("fill", "Maroon");
      }

It works fine in Safari and Firefox but in Chrome, when i mouseover the text or node it's tied to, the transition looks more like it magnifies to 2000em instead of 1.25em.

I'm using Chrome Version 19.0.1084.54.

If it is a bug, does anyone know what the workaround is?

If it's not a bug, it means I'm doing something wrong with transitions.  In this case,would anyone know what it is that I'm doing wrong?

Thanks for your help,

Frank

Norman Khine

unread,
Jun 7, 2012, 11:44:06 AM6/7/12
to d3...@googlegroups.com
Hi,
I get this traceback:

Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 701, in __call__
    handler.get(*groups)
  File "/base/data/home/apps/bl-ocks-org/1.347589459816509846/main.py", line 104, in get
    raw = fetch('http://gist.github.com/raw/%s/%s' % (id, quote(file)))
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/urlfetch.py", line 263, in fetch
    return rpc.get_result()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 604, in get_result
    return self.__get_result_hook(self)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/urlfetch.py", line 371, in _get_fetch_result
    raise DeadlineExceededError(str(err))
DeadlineExceededError: ApplicationError: 5 

perhaps there is something wrong with the google apps.

Frank Guerino

unread,
Jun 7, 2012, 1:04:40 PM6/7/12
to d3...@googlegroups.com
Hi Norman,

Thanks for helping.  May I please ask how you were able to get the traceback, so that I can attempt to do so in the future?

My Best,

Frank
Reply all
Reply to author
Forward
0 new messages