pie-chart

Getting “Error, too late ” for D3 transition

巧了我就是萌 提交于 2019-12-13 17:37:09
问题 I am trying to do three transitions in onClick event of a Pie Chart. The first transition works but the second and the third one fail. I understood from Mike Bostocks comment on a similar question that " This means you are trying to modify a transition that has already started, or derive a transition from one that has ended. Please read the API Reference section on transition life cycles. " I still cant seem to understand the reason why this is happening. Here is the relevant code: self

Need to create count variable in iReport

心已入冬 提交于 2019-12-13 08:22:46
问题 I need to find the count of a field in iReport. For example i need to create a variable called "CallCount" which have count of "CallType" field. So i need to use "CallType" field in Category section of Piechart and "CallCount" variable as measure. So that pie chart will show the call types and its call counts. Please help me on this.... 回答1: If using the community charts (JFreeCharts), here is how you would do this. You need to add a group to the report. Right click on the root object in the

Gradient effect with graddually fill in Highchart gauge

只愿长相守 提交于 2019-12-13 07:47:51
问题 I'm planning to create a dashboard for my web application, I have some data to represent graphically so to show that planning to use you Activity Gauge ( http://www.highcharts.com/demo/gauge-activity ) and other charts. But as per our requirement we need to create these graphs with gradient effect with gradually fill effect with two or more than two colors, see the attached dashboard mockup for better understanding our thought. I have done our best effort to make with Highchart Linear

R Shiny: Pie chart shrinks after labeling

☆樱花仙子☆ 提交于 2019-12-13 06:27:29
问题 I am hoping to label my pie charts with the percentage value. However, when I try to do that, it causes my pie charts to shrink. This is the original code without the labels: shortlistpied <- reactive({ shortlistpie %>% group_by_(input$y, input$x) %>% summarize(Percentage = n()) %>% group_by_(input$x) %>% mutate(Percentage = Percentage / sum(Percentage) * 100) %>% arrange_(input$x) }) output$plot2 <- renderPlot({ if (input$type == "Pie Chart") { ggplot(shortlistpied(), aes_string(x = factor(1

Achart Engine - Piechart 2nd color starts from off - center is it a bug?

流过昼夜 提交于 2019-12-13 06:27:28
问题 i am working on a pie chart: below is the screen shot of that. when we enter these values double[] values = new double[] { 2, 12, 5 }; the result looks like this. As we can see the green color line is starting from off - center. Is this a bug? 来源: https://stackoverflow.com/questions/14730376/achart-engine-piechart-2nd-color-starts-from-off-center-is-it-a-bug

Trying to fill large gap in pie chart using ggplot2

旧巷老猫 提交于 2019-12-13 06:07:31
问题 Attempting to create pie chart with ggplot2 but cannot seem to get it using other references online. The chart I create is missing most of its fill. ggplot(sae,aes(x=1,fill=factor(State), width=1))+ geom_bar()+ ggtitle("House by State")+ coord_polar(theta='y') This code gives: How do I fill the center? Any other improvements appreciated. 回答1: With sample data sae <- data.frame(State=sample(LETTERS[1:6],60,T)) ggplot(sae,aes(x=factor(1),fill=factor(State)))+ geom_bar(width=1)+ ggtitle("House

Highchart: Semi Pie chart with arrow issue

爱⌒轻易说出口 提交于 2019-12-13 05:13:19
问题 I am using the highchart library for making chart in my website. Facing issue: In semi pie chart lines are showing behind the arrow, please see screen shot. Unable to change the colors. Code working in js-fiddle but not in my website. Below is the code, please review and let me know if i miss something. Code $(function () { Highcharts.chart('container', { chart: { renderTo: 'container', plotBackgroundColor: null, plotBackgroundImage: null, plotBorderWidth: 0, plotShadow: false }, title: {

D3.js donut chart… arc.centroid(d) is not influenced by d.innerRadius and d.outerRadius

有些话、适合烂在心里 提交于 2019-12-13 01:24:32
问题 I'm creating a donut (or Piechart) and I want to place the labels just outside the area. I've created a fiddle http://jsfiddle.net/VeeTee/mA3V7/ for it. arcs.append("svg:text") .attr("transform", function(d) { //this is where I want to make a translation to the outside border d.innerRadius = radius; d.outerRadius = height/2; return "translate(" + arc.centroid(d) +")"; }) .attr("dy", ".35em") .attr("text-anchor", "middle") .text(function(d, i) { return d.value.toFixed(2); }); arc.centroid(d) -

gnuplot - making use of the yrange in pie charts?

别说谁变了你拦得住时间么 提交于 2019-12-12 22:40:39
问题 This only works for me if I do not set a yrange. Let's say I have a sample-time-overview.csv like ,avg,std,,,TProc,2267.5202096317,4573.0532262204 TParse,4.9922379603,138.6595434301,,,,, THash,86.4020623229,548.8593468508,,,,, TEnq,1.1181869688,2.0684998031,,,,, TInQ,1482.2243626062,4257.8024051927,,,,, TSend,2253.1871161473,4514.2823125251,,,,, TWait,1.7578696884,43.1050730747,,,,, TAnsw,14.3452407932,201.9216484892,,,,, TProcAll,2269.2780793201,4573.3927526674,,,,, TTotal,3853.3679320114

jquery pie chart with drilldown/clickable pie parts

最后都变了- 提交于 2019-12-12 22:17:04
问题 I'm looking for a JQuery plugin to make pie charts whose wedges or slices I can click to go to another page based on the value of the pie wedge. I'm having a pie chart with grades for a class (A-F). If someone clicks the "A" wedge, I want to redirect to a page that shows the A students. 回答1: I did this with jQuery and open flash charts 回答2: Flot has a pie plugin you can use. 回答3: Have a look at gRaphael. Its not a jQuery plugin, but it is js and can be used with jQuery as shown here. The