pie-chart

Pie charts clustering on Google Maps [batchgeo-like]

青春壹個敷衍的年華 提交于 2019-12-05 07:21:28
问题 Anybody knows how to remake something similar to what Batchgeo does when clusters/groups markers with dynamic pie charts? Example: batchgeo map with pie clustering Thanks, Regards 回答1: I don't have a full how to for you, but do have some pointers which might help you and appear to be used by BatchGeo. I would study the cluster example on Google maps: https://developers.google.com/maps/articles/toomanymarkers Which covers clustering pretty well... then you would need to look at changing the

How to set chart type to pie

亡梦爱人 提交于 2019-12-05 05:47:19
When I do it without putting chart type is working fine but when I set it to pie its not working correct. It put all series name as Point 1 the pie is only 1 blue piece (one circle) and it show only first point (Value). foreach (var tag in tags) { HtmlNode tagname = tag.SelectSingleNode("a"); HtmlNode tagcount = tag.SelectSingleNode("span/span"); chart1.Series.Add(tagname.InnerText); chart1.Series[x].Points.AddY(int.Parse(tagcount.InnerText)); chart1.Series[x].IsValueShownAsLabel = true; chart1.Series[x].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Pie; x++; }

tiny pie charts to represent each point in an scatterplot using ggplot2

。_饼干妹妹 提交于 2019-12-05 02:38:57
问题 I want to create a scatter plot, in which each point is a tiny pie chart. For instance consider following data: foo <- data.frame(X=runif(30), Y=runif(30),A=runif(30),B=runif(30),C=runif(30)) The following code will make a scatter plot, representing X and Y values of each point: library(reshape2) library(ggplot2) foo.m <- melt(foo, id.vars=c("X","Y")) ggplot(foo.m, aes(X,Y))+geom_point() And the following code will make a pie chart for each point: p <- ggplot(foo.m, aes(variable,value,fill

Creating pie charts programmatically

旧巷老猫 提交于 2019-12-05 01:18:56
How can I programmatically generate pie charts from java? I have some data that is processed by a program, then I want to create an image file (PNG, GIF, etc) that has a pie chart. Is there a library that does this, or at least which I can use to do this? Alternately, would it be better to use a library that will draw pie charts in a JFrame and then somehow automatically screenshot those? JFreeChart can generate pie charts and can save the resultant chart to JPEG format. Here is an example of how to do so. Here is a 3D example . There are more examples and documentation available in the

How to create a pie chart with percentage labels using ggplot2? [closed]

旧城冷巷雨未停 提交于 2019-12-04 22:24:26
Closed . This question needs to be more focused . It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post . Closed 2 years ago . I have a data frame and want to create a pie chart on one specific column that indicates the percentage of each level in this column. data <- data.frame(a=c("a1","a1","a2","a3","a1","a2","a3","a4","a2","a1","a5","a4","a3"), b=1:13) In other words, I want to have a pie chart that indicates the occurrence percentage of a1,a2,... In addition, I need the percentage to be shown on the

redraw pie chart in highchart

大兔子大兔子 提交于 2019-12-04 18:45:17
suppose I have 4 slices having 20%, 30%, 30% and 20%. If I make 4th slice(20%) inactive, the other slices should adjust themselves and occupy 100 %. how to do this in highcharts? Thank you. I don't think it's possible to alter this behavior. Instead you need to remove the point all together for the other slices to add up to 100. Here is an example that shows the difference between legend-toggle and point remove: jsfiddle I think this should be the standard behavior :) opts.plotOptions.pie.point.events.legendItemClick = function() { if (this.visible) { this['y_old'] = this.y; this.update(0); }

How to increase size of pie segment on hover in d3

我的梦境 提交于 2019-12-04 18:39:05
问题 I created pie chart using d3. How to increase size of pie segment on hover? As you can see, green segment is so small so I want to change it size like red segment. How can I do this? My code: var w = 400; var h = 400; var r = h/2; var color = d3.scale.category20c(); var data = [{"label":"Category A", "value":20}, {"label":"Category B", "value":50}, {"label":"Category C", "value":30}, {"label":"Category A", "value":20}, {"label":"Category B", "value":50}, {"label":"Category C", "value":30}, {

D3.js: Pie graph, adding a border only to the outter region

限于喜欢 提交于 2019-12-04 18:17:38
问题 I got a pie graph in D3 with a stroke to separete every slice. However, I'd like to add a border only to the outter region of the slices, not in a continuos line but rather respecting the gaps created by the strokes in the original slices. See my image for clarifiation. Any thoughts on how to do that? See http://jsfiddle.net/4xk58/ arcs.append("path") .attr("fill", function (d, i) { return color(i); }) .attr("d", arc).style('stroke', 'white') .style('stroke-width', 5); 回答1: I solved this by

Adding new segments to a Animated Pie Chart in D3.js

寵の児 提交于 2019-12-04 17:05:00
I am unable to add a segment to a D3.js pie chart. I know I need to use .enter() and .append() to stage the new data -- but I am not sure how to apply that when I have the arcs grouped (which I need for the labels). Here is my update function: var updateChart = function(dataset) { arcs.data(donut(dataset)); arcs.transition() .duration(duration) .attrTween("d", arcTween); sliceLabel.data(donut(dataset)); sliceLabel.transition() .duration(duration) .attr("transform", function(d) { return "translate(" + (arc.centroid(d)) + ")"; }) .style("fill-opacity", function(d) { if (d.value === 0) { return

Android: Clickable piechart

空扰寡人 提交于 2019-12-04 14:55:15
问题 I need a piechart for my App to display some data in different sections. the piechart is ready and it also works fine but i need a clickable event when touched on a particular section in pie chart .Please let me know the code Thanks in advance. this is my android code public class PieActivity extends Activity { /** Called when the activity is first created. */ float values[]={300,700,100,500}; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);