pie-chart

Place pie charts on nodes of force directed layout graph in D3

帅比萌擦擦* 提交于 2020-01-19 12:53:10
问题 I would like to place pie charts on the node of a D3 force directed layout graph using D3.js. This is a common visualization in population genetics, see for example http://mathildasanthropologyblog.files.wordpress.com/2008/06/as3.jpg I've started with a very basic graph plot: <!DOCTYPE html> <html lang="en"> <head> <script type="text/javascript" src="d3/d3.v3.js"></script> </head> <body> <script type="text/javascript"> graph = { "nodes":[{"proportions": [{"group": 1, "value": 1}, {"group": 2,

Place pie charts on nodes of force directed layout graph in D3

我的梦境 提交于 2020-01-19 12:53:05
问题 I would like to place pie charts on the node of a D3 force directed layout graph using D3.js. This is a common visualization in population genetics, see for example http://mathildasanthropologyblog.files.wordpress.com/2008/06/as3.jpg I've started with a very basic graph plot: <!DOCTYPE html> <html lang="en"> <head> <script type="text/javascript" src="d3/d3.v3.js"></script> </head> <body> <script type="text/javascript"> graph = { "nodes":[{"proportions": [{"group": 1, "value": 1}, {"group": 2,

Highchart js click rotate and expand arc

为君一笑 提交于 2020-01-16 14:18:49
问题 Hi I'm looking to create a pie chart with highchart js that expands twolayers, and rotates to the center whenever I click a section. So far I have a pie chart that expands one layer, and a click function that brings the arcs to the center (-90). I also have a click function that rotates the pie by degrees. My inner arc stays in the center and im having a hard time moving the arc to the same position of the out rings. The inner arc do not follow the click rotate aswell. I would like to make a

How to subset or aggregate large amounts of data so I can make separate pie charts

非 Y 不嫁゛ 提交于 2020-01-15 12:18:05
问题 My data looks like this: Trip_Set sex 119_4 hembra 119_4 hembra 119_7 hembra 161_7 macho 193_8 hembra 255_7 macho 271_6 hembra 271_6 macho 271_6 hembra 328_7 hembra 403_3 hembra 428_2 hembra 655_4 hembra As you can see, each Trip_Set has a number of males or females (some just have one). I wish to make a separate pie chart for each trip set to show the ratio of males to females for each. This is just a snippet of my dataset (the real one is much larger with hundreds of Trip_Sets). My code for

how to generate piechart using apache poi 4.0 XDDFChartData, XDDFPieChartData; in excel sheet using java, i dont want to use jfree

北城以北 提交于 2020-01-15 05:41:28
问题 I need a sample code in Java, currently I am able to draw line charts after reading values from sheet, and I also want to generate pie chart. Example code I have tried which is for .ppt format. I want the same in excel for pie chart in java. String[] categories = listCategories.toArray(new String[listCategories.size()]); Double[] values = listValues.toArray(new Double[listValues.size()]); final int numOfPoints = categories.length; final String categoryDataRange = chart.formatRange(new

how to generate piechart using apache poi 4.0 XDDFChartData, XDDFPieChartData; in excel sheet using java, i dont want to use jfree

一笑奈何 提交于 2020-01-15 05:41:12
问题 I need a sample code in Java, currently I am able to draw line charts after reading values from sheet, and I also want to generate pie chart. Example code I have tried which is for .ppt format. I want the same in excel for pie chart in java. String[] categories = listCategories.toArray(new String[listCategories.size()]); Double[] values = listValues.toArray(new Double[listValues.size()]); final int numOfPoints = categories.length; final String categoryDataRange = chart.formatRange(new

Label not showing on mouse event JavaFx

半腔热情 提交于 2020-01-13 13:05:31
问题 I have a pie chart where i have added a mouse listener using this guide: Oracle guide to pie chart However when i run my program and click on the chart it doesnt do anything. I have tried to System.out.println(caption.getText()); and the text of the label is correct however the label is just not showing up. My code is as following: public void start(Stage stage) { Scene scene = new Scene(new Group()); stage.setTitle("Imported Fruits"); stage.setWidth(500); stage.setHeight(500); ObservableList

pie chart/plot in swift

二次信任 提交于 2020-01-13 11:59:48
问题 I've tried so many different ways of add plots package from GitHub or using core plots or combining objective-c into swift, but it appeared so many problems during the process, and during this week I didn't make a successful chart. I'm really depressed. Is there anyone who succeed in creating a pie chart in swift? The similar questions seem don't have successful answers. I would really appreciate your help! 回答1: Don't be depressed. You just have to add a more specific question to get more

Circular UIView with multiple coloured border working like a pie chart

六眼飞鱼酱① 提交于 2020-01-11 12:14:12
问题 I am trying to set a circular avatar of a player of a game with a piechart representation on the avatar's circular border. Player 1 - Wins 25% Lost 70% Drawn 5% cell.selectedPhoto.frame = CGRectMake(cell.selectedPhoto.frame.origin.x, cell.selectedPhoto.frame.origin.y, 75, 75); cell.selectedPhoto.clipsToBounds = YES; cell.selectedPhoto.layer.cornerRadius = 75/2.0f; cell.selectedPhoto.layer.borderColor=[UIColor orangeColor].CGColor; cell.selectedPhoto.layer.borderWidth=2.5f; cell.selectedBadge

Highcharts pie tooltip cuts off

本小妞迷上赌 提交于 2020-01-10 05:27:05
问题 I am using Highcharts to generate a pie chart. It is generating it fine but the problem is that I have a fixed area to display the chart and the tooltip has large amount of text. The tooltip is too large to fit inside the chart div, how can I fix this? $(function () { var chart; $(document).ready(function () { chart = new Highcharts.Chart({ chart: { renderTo: 'ER_inpatient_stay', plotBackgroundColor: null, plotBorderWidth: null, marginTop: 0, plotShadow: false, backgroundColor: 'none', },