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) {...
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 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...
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...
I am creating an interactive bubble chart of fortune 500 data. I am trying to reduce a selection but can't figure out why it's not working as I expect.  var bubble = d3.layout.pack()     ...  d3.json("js/data/fortune2009.json", functi...
Hello All instead of simple Circles, i want to add pie charts in my Pack layout.  Lets Suppose this is my pie chart data and pie layout  var data=[2,3,4,5]   var arc = d3.svg.arc()     .outerRadius(50)     .innerRadius(0);  var pie = d3.layout.pie()...
Please take a look to this simple jsfiddle: http://jsfiddle.net/perikut/9qUVW/2/  (sorry if using Firefox, I don't know why it doesn't look good...)    In our object can we use another word than 'children' to indicate where extract da...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.