Half pie chart with multiple values - d3.js

How to create Half pie arc in d3
I'm following an example with full pie chart. How do I create Half pie chart?
code so far
http://tributary.io/inlet/5260888

Solution: http://tributary.io/inlet/5273835
d3's pie layout has functions to set the startAngle and engAngle properties which can create partial pie charts.

I had a similar requirement, however the missing part isn't half, but a changing fraction of the whole. in order to achieve this, I just set the "stroke" and "fill" for the missing segment to "none".

Related

In nvd3.js is there any direct option for displaying polylines for Pie/Donut Chart with labels outside the arcs

Refer Animated Donut Chart with Labels, Legend and Tooltips created using d3.js
I don't see any option for creating a Pie/Donut Chart with polylines for marking labels outside the arcs as per the official documentation.
Also it will be great if we can fill the line stoke with same color as that of the point as shown here.

Dimple.js Candlestick Chart

I am using Dimple.js to plot several data series and I need to add a candlestick or hi/lo series on to my existing chart. After some analysis, I have found two possible approaches to do this:
1) Use the floating bar option in Dimple.js. Since the "widths" (heights on the chart, but widths for the floating bar) would be all different, I would need a different data series for each candlestick. This feels like a hack, but the one advantage is that this would be using Dimple to do all the rendering. I would probably not go this route unless some had a thought on how to make this less of a hack.
2) Drop down to D3 to draw lines between the points. I can use Dimple.js to graph both the top and bottom elements of the candlestick, then use D3 to draw the line between the points. I would do a selectAll() on one of the series, and then draw a path to the related point in the other series.
If there are other suggestions on an approach, please let me know. Thanks!
You can use this example to build candlestick charts using d3.js

How to instanciate custom pie charts as node of a D3 force directed graph

I am trying to put together a force directed graph in which I would like some of the nodes to be progress bars. I have put together a circular progress bar using a donut pie chart but now I am struggling to see how to instantiate several of these pie chart and have them in place of node.
Circular progress bar: http://jsfiddle.net/qwTFN/
I have already found a related question 1 and tweaked some code to put a standard pie chart as node but my problem here is that I want my own custom chart (as per the jsfiddle link)...
any ideas appreciated ;)
1 Place pie charts on nodes of force directed layout graph in D3

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