How to draw Pie chart like below by using coreplot? - iphone

How to draw Pie chart like below by using coreplot???

You'll need to use two pie charts to draw this—one for the inner ring and another one for the outer ring. Look at the Donut Chart plot in the Plot Gallery example app.
The pieRadius sets the radius of the outside of the ring and the pieInnerRadius property sets the inner radius. Use a negative labelOffset to put the labels inside the plot. Insert a newline ('\n') character between the word and the number to make the two-line labels for the inner plot. Set the textAlignment of the label text style to CPTTextAlignmentCenter to center align the multi-line labels.
You can use the default color scheme for the pie slices, but it only has 10 colors. If you want more or different slice colors, implement the -sliceFillForPieChart:recordIndex: datasource method and return the desired fill (which can be a color, gradient, or image) for each slice.

http://www.jaysonjc.com/programming/pie-chart-drawing-in-iphone-using-core-plot-library.html
I hope It Will Help ful to you

Related

How do I add a categorical legend to a double line graph in Tableau?

Here is my Current View
I'm wanting to add a legend to distinguish between members(yellow line) and casual riders (blue line) so viewers can see which line is which.
Seems like this should be simple, but I feel like I've tried everything. The closest I've come is by getting a legend to pop up by dragging measure values over to the color, but then it changes my colors that I have already established and syncs both lines as the same color or gradient of colors. All I need is a legend detailing which line is which.
Instead of individually changing each line's color, place Measure Names in the Color shelf of All marks card. This should make the legend appear on the right.

How can I make each Packed Bubble a different color?

I have a Packed Bubble dashboard. My Y axis is a list of names and my X axis is a decimal. I want each differing number to be a different color. Can I do this manually?
If you want to color each bubble with a separate color just use the field that each bubble represent in the color shelf. If I understood your data correctly, each bubble basically represents one campaign, so you should use that as the color.
You can manually assign color using Color>Edit Color and assigning the color of your choice.
See image 1.
If you want to color your bubbles based on your measure AVg(NPV/Marketing $) you can do as Alex Blakemore mentioned and use your measure as a stepped color or gradient.
You can use Color>Edit Color here too , in this case manually assigning color is a bit difficult. But if you play with number of steps, the gradient pre-select, etc, you can usually get very close to what ever your wanted it to look like.
Put your numeric field on the color shelf, and either edit the colors to use a stepped set of colors - or change the field to be discrete and choose individual colors to taste.

Tableau show legends for lines charts on dual axis?

I have 2 lines in a chart and i used dual axis on them. For each line, i manually picked colors for them through the MARKS card.
Now I need a legend to show what each line and their color represent but i dont see any way to do it. When i put one of the pill on the colors box, it gives me a gradient of colors on my trend line which is not the color i manually picked by clicking on the colors box.
How can i go about doing this?
Using the "All" marks card (the top one), put Measure Names on the color shelf

jfreechart pie chart fixed pie radius

I have dynamic pie set and if there are a lot of series then pie get small.
How to set fixed pie chart radius.
A PiePlot grows to fill the space available, so you'll need to give it room to grow. Some possible approaches:
Override getPreferredSize() and use a suitable layout, as shown here among other suggestions.
Display the legend items in an adjacent component, as shown here, leaving the chart alone to fill it's container.
Reposition the legend within the chart, as shown here for the default RectangleEdge.BOTTOM.

Using core-plot ios sdk is it possible to draw inner circle

Using core plot pie chart i am able to produce this. However i want to fill the inside rect with some color is it possible?. i have used same source http://stackoverflow.com/questions/17697300/coreplot-ios-remove-border-line-around-pie-chart..
kindly suggest the other possibilities also.
Make a second pie chart with a radius equal to the inner radius of the ring. Give it a single slice filled with the desired background color.