D3 Hierarchical Chart X position issue - d3.js

I have created a D3 Hierarchical chart based on world GDP data. The rectangles represent the countries share of world GDP and the data is organised by continent which is colour coded. The issue is that as the chart updates through the years the X position of the colour continent group changes. I have included two pictures for reference that are screen shots at different years of data in the animation. Does anybody know how this behaviour can be overridden so that the pink group is always in the same X position no matter what the year of data is currently showing?
Screenshot1

Related

Can you center labels inside map fields (states, counties, etc.)?

When I choose "Middle" alignment for the labels for geographic fields, the labels don't really move.
Are labels "centered" already for geographic fields by default?
When I show labels for county fields and choose middle alignment, the labels don't move.
Screenshot from sample Superstore Data. Default label alignment is the same as middle alignment. Default label alignment also looks centered for states. It is harder to tell if labels are centered for smaller shapes such as counties.
yes the labels are centered by default for geographic fields. I agree that it is hard to tell for smaller shapes as well as for large countries that have a unique shape.

How to set the radiuses of each band on a sunburt chart?

I'm using the new sunburst chart for a 2 level hierarchy [country,region] and it works great, but I have one issue:
the second band (region) is tiny compared to the first one (country). How to adjust the radius to it works better visually?

How to create a tooltip for multiple points in a scatterplot with d3

I have a scatterplot created with d3. The circles/points are all the same size. The grid goes from 1-10 on both x and y axes. All points have x and y values of whole numbers (no decimals).
My problem is that I frequently have multiple data points with the same coordinates. Because the points are all the same size I can't tell how many points are at a single spot.
My points have tooltips, one for each data point. So, I was thinking that it's OK to show only a single point/circle if I can show a tooltip that contains information about all points with the same x/y coordinate. I can't think of a way to do that though because the tooltips seem to be generated for a single point, not "for all points at the same coordinate", or generated dynamically.
How can I do this?
As #LarsKotthoff mentioned, aggregating my data before rendering and adding a key function to identify each aggregate were the two steps needed to get everything working properly.

Zoomable scatter chart

In Qlikview 11 I managed to set up (amongst others) a nice scatter chart without any major problems. Now I would like to be able to zoom into a region in that chart. Intuitively this could be accomplished by selecting a rectangular region with the mouse. Incidentally this works fine in "regular" line or bar charts. The new x and y axis regions correspond to the selected rectangle. However this does not happen with my scatter chart. I suspect this has something to do with the way dimensions are handled in scatter charts. For easier understanding I appended to screen-shots of the status quo - or how I don't want it to be.
Full chart with selected region http://img801.imageshack.us/img801/4873/6ccc.png
Chart displaying only the selected data http://imageshack.us/a/img138/9053/kck5.png
From what it looks like, I would guess that the scatter plot has hard coded axis max and mins. Check the "Axes" tab under chart properties, and uncheck the scale boxes. That should allow the chart to zoom in.

D3 histogram brushing specific datapoints

I'm a bit new to D3, so I apologize if this is trivial.
I want to create a histogram that allows a user to brush over parts of a histogram and display all of the selected data points in a table separate of the histogram. Basically, I want to create (http://square.github.com/crossfilter/) in D3 using a "brush". All of the examples that I've seen have bar charts instead of histograms. I couldn't get anything to work by creating the brush in a histogram visualization. Is this possible or should I just re-tool a bar graph into a pseudo-histogram?
Thank you!

Resources