pie-chart

Pie chart with different fill percentage

邮差的信 提交于 2019-12-22 09:48:50
问题 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.

Donut Pie Chart - Add a Title - NVd3.js

这一生的挚爱 提交于 2019-12-22 09:48:07
问题 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,

How to create dynamic color list for charts

爱⌒轻易说出口 提交于 2019-12-22 09:07:32
问题 How to create dynamic color list for charts Basically i have a different value in my database or each values contain each percentage and i need to show this percentages in pie chart with different colors .... This is the example code of pie chart in static way <color value="#99CDFB"/> <color value="#3366FB"/> <color value="#0000FA"/> <color value="#F8CC00"/> <color value="#F89900"/> <color value="#F76600"/> but i need dynamic way using PHP ( for loop / foreach loop ) like this $color = "";

Add unit labels to radar plot and remove outer ring ggplot2 (spider web plot, coord_radar)

狂风中的少年 提交于 2019-12-22 08:54:14
问题 I've been working on a radar plot recently and found a great bit of code on from Erwan Le Pennec. I've made a few edits, however there are some parts I couldn't work out how to remove the outermost circle as it doesn't define a value. Currently the code is plotting the major grid lines. I've tried to trick it into removing both axis and only plotting the minor increments however either has worked. Cheers! Here is my code: coord_radar <- function (theta = "x", start = 0, direction = 1) { theta

Remove white space (i.e., margins) ggplot2 in R

℡╲_俬逩灬. 提交于 2019-12-22 08:05:58
问题 I'm trying to plot a pie chart using GGPLOT2 in R. I want to do this in such a way as to omit the extra margin space. What I'm doing is similar to what sharoz did in this post here except I want to include a legend. Here is what I'm doing: ggplot(DATA, aes(x=factor(0),fill=factor(LABELS),weight=VALUES)) + geom_bar(width=1) + coord_polar(theta='y') + guides(fill=guide_legend(title='LEGEND')) 回答1: Assuming you are talking about the extra white space above and below the figure, the easiest

Google Pie chart: remove white gap between pie slices

。_饼干妹妹 提交于 2019-12-22 07:03:06
问题 Similar to this question, but for Google Pie Charts: How can I remove the white lines between the slices on a Google Pie Chart: On the image above, I want to remove the white space highlighted by the green arrow. 回答1: You can get rid of that gap by setting the pieSliceBorderColor to "transparent" . Try the following on Google Code Playground: function drawVisualization() { // Create and populate the data table. var data = google.visualization.arrayToDataTable([ ['Task', 'Hours per Day'], [

Google Pie chart: remove white gap between pie slices

…衆ロ難τιáo~ 提交于 2019-12-22 07:02:25
问题 Similar to this question, but for Google Pie Charts: How can I remove the white lines between the slices on a Google Pie Chart: On the image above, I want to remove the white space highlighted by the green arrow. 回答1: You can get rid of that gap by setting the pieSliceBorderColor to "transparent" . Try the following on Google Code Playground: function drawVisualization() { // Create and populate the data table. var data = google.visualization.arrayToDataTable([ ['Task', 'Hours per Day'], [

Creating pie charts programmatically

瘦欲@ 提交于 2019-12-22 03:49:20
问题 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? 回答1: JFreeChart can generate pie charts and can save the resultant chart to JPEG format. Here is an

How to insert pie charts in Pack Layout in d3.js?

╄→гoц情女王★ 提交于 2019-12-21 20:27:17
问题 Hello All instead of simple Circles, i want to add pie charts in my Pack layout. Lets Suppose this is my pie chart data and pie layout var data=[2,3,4,5] var arc = d3.svg.arc() .outerRadius(50) .innerRadius(0); var pie = d3.layout.pie() .sort(null) .value(function(d) { return d; }); And this is how the packlayout draws the circle var circle = svg.selectAll("circle") .data(nodes1) .enter().append("circle") .attr("class", function(d) { return d.parent ? d.children ? "node" : "node node--leaf" :

How to insert pie charts in Pack Layout in d3.js?

无人久伴 提交于 2019-12-21 20:26:18
问题 Hello All instead of simple Circles, i want to add pie charts in my Pack layout. Lets Suppose this is my pie chart data and pie layout var data=[2,3,4,5] var arc = d3.svg.arc() .outerRadius(50) .innerRadius(0); var pie = d3.layout.pie() .sort(null) .value(function(d) { return d; }); And this is how the packlayout draws the circle var circle = svg.selectAll("circle") .data(nodes1) .enter().append("circle") .attr("class", function(d) { return d.parent ? d.children ? "node" : "node node--leaf" :