pie-chart

Scatter pie plot

[亡魂溺海] 提交于 2019-12-06 08:57:05
问题 I'm trying to visualize a soft clustering. There are a number of points and a small number of clusters, each point belongs to each cluster with some probability. Currently, I'm overlaying a scatterplot for each cluster, with the size of 'o' markers varying by the probability. This allows easy identification of the most probable cluster, but not much beyond that. I'd like to draw a scatterplot of pie charts, i.e. one small pie chart for each of the many data points, showing these probabilities

How to create a Google Pie Chart with dynamic data?

夙愿已清 提交于 2019-12-06 08:23:57
I'm struggling to get the below google pie chart to reflect dynamic data found within a html table on the same page. <html> <head> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"> </script> <script type="text/javascript"> google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Answer', 'Percentage'], ['Yes', 10], //This static data needs to reflect dynamic data from html table ['No', 3], //This static data needs to reflect dynamic data from

create floating pie charts with ggplot

放肆的年华 提交于 2019-12-06 07:29:13
问题 Currently I am working on report with a floating pie chart as one of the plots. Currently I use the plotrix package to plot this pie chart. But since I use ggplot2 for all the other plots, the pie plot looks different. So I'm trying to create the plot using ggplot2. Currently I have two issues: The ggplot pie charts are plotted on a polar coordination system. I want to plot multiple pie charts on Cartesian coordination system. At the moment I do not know how to do this. I want to be able to

faceted piechart with ggplot

我们两清 提交于 2019-12-06 06:16:13
问题 I have the following data.frame: x = data.frame(category=c(1,1,1,1,2,2,2,2), value=c(1,2,1,1,2,2,2,1)); x$category = as.factor(x$category); x$value = as.factor(x$value); and I have created a faceted bar chart with ggplot2. ggplot(x, aes(value, fill=category)) + geom_bar() + facet_wrap(~category); However, I would like to have a pie chart that shows the fraction values (based on the totals for each category). The diagram should then show one pie chart for each category and two fractions inside

Polymer 1.0 Is there any ready made chart element?

守給你的承諾、 提交于 2019-12-06 06:07:14
I want to add a pie chart in my Polymer 1.0 application. I used chart-elements with Polymer 0.5, but when migrated to 1.0 it stopped working! I did not find anything for 1.0 yet. Does 1.0 at all has a ready made chart element? Seeking for expert help. Thanks in advance. EDIT According to Ben's suggestion I tried with google-chart component and this is what I did. But the chart is not rendering. Step 1: I installed google-chart by using bower install --save GoogleWebComponents/google-chart Step 2: Created a custom element using yo polymer:el custom-pie-chart which looks like this: <dom-module

Donut chart python

▼魔方 西西 提交于 2019-12-06 05:25:04
问题 So I using this code to create a donut chart with python (inspired in this Donut plot recipe): def make_pie(sizes, text,colors,labels): import matplotlib.pyplot as plt import numpy as np col = [[i/255. for i in c] for c in colors] fig, ax = plt.subplots() ax.axis('equal') width = 0.35 kwargs = dict(colors=col, startangle=180) outside, _ = ax.pie(sizes, radius=1, pctdistance=1-width/2,labels=labels,**kwargs) plt.setp( outside, width=width, edgecolor='white') kwargs = dict(size=20, fontweight=

can I make such graph in R - bar chart embedded in pie chart

扶醉桌前 提交于 2019-12-06 04:41:54
问题 I have following data: I II Total A 15 25 40 B 5 45 50 C 15 5 20 R data input: group <- c("A", "B", "C", "A", "B", "C") subgroup <- c("I", "I", "I", "II", "II", "II") yvar <- c(15, 5, 15, 25, 45, 5) As I was thinking a better way to present it, I came to idea of pie chart (preferably 3D) combined with bar chart (preferably 3D). Here is my rough sketch of my idea where bar chart is embedded into pie chart. Please suggest me if you have any other innovative idea to present such data. 回答1: Come

Donut Pie Chart - Add a Title - NVd3.js

与世无争的帅哥 提交于 2019-12-06 02:04:44
I'm exploring the NVD3.js library. It amazes me how quickly things can be produced in it. But it seems like it's difficult to alter the chart sometimes. In this case, I would like to add a title to my chart . The other thing, I would like to add additional data in the tool-tip . So on hover, It would also include the note in my data. Data sample: var data = [ { key: "Loans", y: 52.24 note: "Expect greatest value" }]; This is the code I'm playing with: nv.addGraph(function() { var width = 500, height = 500; var chart = nv.models.pieChart() .x(function(d) { return d.key; }) .values(function(d) {

Android achartEngine how to highlight particular chart element

混江龙づ霸主 提交于 2019-12-06 01:46:16
Hi i am using achartengine's pie-chart to represent my actual sales, now as my app starts one of the chart element in the piechart should get highlighted, like when we do the onclick on pie chart. Below is the code for my piechart final DefaultRenderer renderer = buildCategoryRenderer(colors); renderer.setPanEnabled(false);// Disable User Interaction renderer.setLabelsColor(Color.BLACK); renderer.setShowLegend(true); renderer.setLegendTextSize(20); renderer.setInScroll(true); renderer.setStartAngle(180); renderer.setChartTitle("Sales By Market Segment- Month"); renderer.setLabelsTextSize(22);

Pie chart with different fill percentage

a 夏天 提交于 2019-12-05 21:19:41
I want to ask something about jquery pie plots or pie charts. I want to make piechart/wheel where the fill percentage on each slice is not 100% like this one: http://i1191.photobucket.com/albums/z462/rikides/a.png I already made the basic pie chart using GD pie chart but I dont really have any idea on how to do it or where to start configuring. Can someone help me please? Im stuck on this problem for 1 week now and I have tried googling about this but I can not find any similar tutorials. EDIT : I also tried using JP Graph but what I have made so far is only the basic pie chart, please let me