pie-chart

Google Pie Chart: How can I remove the white line between slices?

核能气质少年 提交于 2019-12-25 02:53:34
问题 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: Use the configuration option pieSliceBorderColor with the value transparent (see documentation here). new google.visualization.PieChart(document.getElementById('visualization')). draw(data, { pieSliceBorderColor : "transparent", // Add this line title : "So, how was your day?" }

Extract file in PHP and display content in chart

这一生的挚爱 提交于 2019-12-25 02:41:07
问题 I have this a file named "test.txt" which has the following content: BEGIN_SESSION 7 1h+ 47 30mn-1h 20 15mn-30mn 16 5mn-15mn 43 2mn-5mn 29 30s-2mn 35 0s-30s 170 END_SESSION And thanks to the user wumm it help me to find a way to extract the data and display it.So the problem is :I've witten this function that display data in a pie chart : function awstats_extract_session($session) { # Session range - Number of visits $session = explode("\n", $session) ; unset($session[(count($session)-1)]) ;

What does it need to specify the category order in a colored and patterned pie chart in SPSS?

六眼飞鱼酱① 提交于 2019-12-24 23:23:49
问题 I created a colored and patterned pie chart as described in this stack exchange Question. Now I also want to specify an order of the categories to apear in the pie chart. Usually this works with the sort.values funtion: SCALE: cat(aesthetic(aesthetic.color), sort.values("value", "value",...)) However this function doesn't seem to have an effect when having both color(var)) and texture.pattern(var) functions inside the same ELEMENT -Statement. 回答1: You also need to specify the category order

How to create Pie Chart in GWT using gwt-visualization api?

人走茶凉 提交于 2019-12-24 22:27:39
问题 I'm trying to build a pie-chart. But i get two different kinds of charts with different jars, gwt-charts & gwt-visualization. . charts image http://gwt-google-apis.googlecode.com/svn/wiki/SimpleVizQuery-1.png This is generated using gwt-visualization.jar. But it only displays the detail when I click on it and not when i hover on it. And it has a few more flaws. . This is generated using gwt-charts.jar and this is what i want. Problem is that I need to use gwt-visualization.jar, but I want the

Rotate the text of chart with the chart Android

≯℡__Kan透↙ 提交于 2019-12-24 16:42:29
问题 I need your expertise to get out of this problem. I have used the code given bellow to draw apie chart and rotate it when the flag "bisSmart" is set to true. Everything is going fine except one problem. I want to move the text with it's arc. But the problem is that while moving the text it comes on the chart. I want to move the text from outside of the pie chart. Plz help me to get out of this problem. Advance thanks. Here is the code. public class PieChart extends ViewGroup { private List

Modifying font size for pie chart lables

最后都变了- 提交于 2019-12-24 11:35:49
问题 I am using a simple script for a pie chart, but I am unable to change the font size of the pie labels. Is there an easy way to change it? Below is my plotting code: h = pie ([0.1,0.1,0.1,0.1,0.1], {"unlikely","possible","likely","very likely","certain"}); y = 0; n = 1; colormap([1 1 n; %// unlikely 1 1 y; %// possible 1 1 y; %// likely 1 1 y; %// very unlikely 1 1 n;]) %// certainly ax = gca(); set(ax,'fontsize', 18); view([270, -90]) 回答1: The variable h contains an array of five Patch

Chartjs - Donut Chart label for small values not visible

杀马特。学长 韩版系。学妹 提交于 2019-12-24 01:52:59
问题 Values for my Chart range from 10 to 70000. Since 70000 is too large, small values are not visible in the chart and I cannot view its label on hovering over it. Is it possible to show all labels, without having to hover or any better solution for this. fiddle: https://jsfiddle.net/Sanal_5/e6zdk6jt/4/ [https://jsfiddle.net/Sanal_5/e6zdk6jt/4/][1] 回答1: You could draw the legend for the pie chart by calling generateLegend on the created chart and add an event listen to highlight the segment when

How can I change the colors of the slices in pie charts in plotly for r using hexadecimal strings?

£可爱£侵袭症+ 提交于 2019-12-24 01:13:19
问题 This is my pie chart as of right now: library(plotly) library(RColorBrewer) P <- data.frame (labels = c("A", "B", "C", "D", "E"), values = c(5, 8, 3, 4, 9)) plot_ly(P, labels = labels, values = values, type = "pie", marker = list(colors=c("lightskyblue", "deepblue", "dodgerblue", "midnightblue", "powderblue")), textinfo="value", textposition="outside") I wanted to change its colors with hexidecimal strings so I could use palettes from RColorBrewer. Thank you in advance! 回答1: Just put the hex

Group Smaller Slices in Pie Charts to Improve Readability

梦想与她 提交于 2019-12-24 00:52:29
问题 I want to group data thar have under 10% percentage to be grouped to slice of pie named others. Is it possible? Pie-chart series: [{ type: 'pie', name: 'Browser share', data: [ ['Firefox', 45.0], ['IE', 26.8], { name: 'Chrome', y: 12.8, sliced: true, selected: true }, ['Safari', 8.5], ['Opera', 6.2] ] }] 回答1: You just need to calculate slightly different data. Iterate over the entries looking for items with < 10%. Add these to an 'other' category. Something like this: var data = [ ['Firefox',

How to get complete, rather than partial, pie charts using gganimate

北战南征 提交于 2019-12-24 00:43:37
问题 I have a problem when doing an animated pie chart with gganimate and ggplot . I want to have normal pies each year, but my output is totally different. You can see an example of the code using mtcars : library(ggplot2) library(gganimate) #Some Data df<-aggregate(mtcars$mpg, list(mtcars$cyl,mtcars$carb), sum) colnames(df)<-c("X","Y","Z") bp<- ggplot(df, aes(x="", y=Z, fill=X, frame=Y))+ geom_bar(width = 1, stat = "identity") + coord_polar("y", start=0) gganimate(pie, "output.gif") An this is