I managed to create a bubble chart which works fine when it is a single dataset. But something goes wrong if I need to update it with other datasets. Please help me with my update function at http://jsfiddle.net/9jL64/.  function changebubble(root) {...
I'm trying to dynamically update a d3 circle pack layout with data I receive in json. Every second I call d3.json() to get the new json. Instead of updating the existing visualization, my implementation just creates a new one under the old one. I...
Here is jsfiddle:    This is really good if you have, let's say, 2 political parties, and you want to present election results across several voting units, or similarly structured data.  However, I need to visually represents this: (5 political p...
I try to use http://mbostock.github.com/d3/ex/bubble.html but with changed colors.   I would like to find out how the colors are set in d3.layout.pack....
I am using the Zoomable Pack Layout provided on the D3 website: http://mbostock.github.io/d3/talk/20111116/pack-hierarchy.html    All labels of the circles are displayed when the layout is displayed.  The problem is that for small circles which are c...
UPDATE: New JSFIDDLE Scaling now working, ditched the defs and rect altogether and just appended the image. But still stuck on translate.  The translating is still not working on zoom. I can set the translate to say -100 for both x and y to get the n...
I have bubble chart based on this tutorial.  I have enabled dragging of bubbles with following code. This makes individual circles draggable, but while dragging a circle other circles don't get auto adjusted. I am using pack circle algorithm, ple...
So I am using the same code as this D3 gallery example (with my own data):     http://bl.ocks.org/mbostock/4063269    I'd like to get a bubble chart where the circles are arranged with the biggest in the center and then radiating out to the smal...
I'm trying to merge two of Mike's examples: Zoomable Circle Packing + Automatic Text Sizing.  It works when initially displayed at the top-level.  However, if you zoom in to the next level, the fonts are not sized correctly.  I'm not sure...
Example: http://mbostock.github.com/d3/ex/bubble.html    I'm having a hard time understanding what goes on with line 16:  .data(bubble.nodes(classes(json))   And why, or where within the classes() function, the variable classes[] gets x,y,r value...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.