pie-chart

Kibana - Pie-Chart with sum over two different fields

时光怂恿深爱的人放手 提交于 2019-12-12 03:27:25
问题 In an index I have two mappings. "mappings" : { "deliveries" : { "properties" : { "@timestamp": { "type" : "date", "format": "yyyy-MM-dd" }, "receiptName" : { "type" : "text" }, "amountDelivered" : { "type" : "integer" }, "amountSold" : { "type" : "integer" }, "sellingPrice" : { "type" : "float" }, "earned" : { "type" : "float" } } }, "expenses" : { "properties" : { "@timestamp": { "type" : "date", "format": "yyyy-MM-dd" }, "description": { "type" : "text" }, "amount": { "type": "float" } } }

Show different datasets with an MPAndroidChart pie chart

淺唱寂寞╮ 提交于 2019-12-12 03:08:59
问题 In my application I want to display some data on a pie chart. I'm using the MPAndroidChart library and following the documentation I managed to program a nice looking chart with all my data correctly displayed. Now, I'd like to improve my chart, but I'm having some trouble. My data refers to a single day, but there are two categories: incomes and revenues. Until now I've handled them as a single PieDataSet (they have labels, so it is quite easy to distinguish among them). Now I'd like to

Data structure for D3 pie charts

天涯浪子 提交于 2019-12-12 02:58:00
问题 I am currently taking my first steps in D3 data visualisation. So far, the D3 tutorials have helped me a lot. The pie chart tutorial http://bl.ocks.org/mbostock/3887235 though does not further explain the necessary data structure for pie charts. My data is more complex than the label/value structure of the example. I have the annual total import data and import data of a specific good stored in JSON: var data = [{"year":"2001","total_import":"100000","import_specific_good":"25000"},{"year":

Highcharts Pie chart return slice animation on mouseout

佐手、 提交于 2019-12-12 02:55:59
问题 I am implementing an animated pie chart in Highcharts where the slices pull out on mouseover and all is good apart from a issue where the on mouseOut I want the slice to return to the 'closed' position. This is the code for the animation and I have a clearTimeout on mouseOut however this is not returning the slice to the original position. Is there an easy way of the chart to its original position. I have a fiddle here... http://jsfiddle.net/rupertito/Y3wvN/1/ pie: { allowPointSelect: true,

In Android how to display percentage in pie chart with achartengine

空扰寡人 提交于 2019-12-12 01:53:17
问题 I am using achartengine for displaying the pie chart and I have tried this :-- public class AChartEnginePieChartActivity extends Activity { private static int[] COLORS = new int[] { Color.GREEN, Color.BLUE,Color.MAGENTA, Color.CYAN }; private static double[] VALUES = new double[] { 10, 11, 12, 13 }; private static String[] NAME_LIST = new String[] { "A", "B", "C", "D" }; private CategorySeries mSeries = new CategorySeries(""); private DefaultRenderer mRenderer = new DefaultRenderer(); private

simple d3.js pie chart transitions *without* data joins?

不羁的心 提交于 2019-12-11 23:21:13
问题 I'm working with a data set that's categorically identical from year to year, and I want to make a D3 pie chart with animated transitions from year to year. The data is in a 2-d array, each inner array is a year. Because the number of values isn't changing, I think I can just replace the data set for the transition, and I don't need to do a data join (?). I have the pie chart working well initially, and I'm updating the data via click event. But my transitions aren't working. Here's the code

how to make a pie graph only name top n performance

老子叫甜甜 提交于 2019-12-11 22:18:17
问题 I haven't been using pie graph a lot in r, is there a way to make a pie graph and only show the top 10 names with percentage? For example, here's a simple version of my data: > data count METRIC_ID 1 8 71 2 2 1035 3 5 1219 4 4 1277 5 1 1322 6 3 1444 7 5 1462 8 17 1720 9 6 2019 10 2 2040 11 1 2413 12 11 2489 13 24 2610 14 29 2737 15 1 2907 16 1 2930 17 2 2992 18 1 2994 19 2 3020 20 4 3045 21 35 3222 22 2 3245 23 5 3306 24 2 3348 25 2 3355 26 2 3381 27 3 3383 28 4 3389 29 6 3404 30 1 3443 31 22

How to create a pie chart with color and pattern in SPSS

与世无争的帅哥 提交于 2019-12-11 18:29:04
问题 I want to create a colored and additional pattern, pie chart with GGRAPH\GPL. The function of the pattern is to visualize the major category to which the respective category belongs to. With the SPSS Chart Builder I can only create a colored or a patterned pie chart. The relevant ELEMENT Statement looks as follows: ELEMENT: interval.stack(position(summary.percent(COUNT))), color(myvar)) Or: ELEMENT: interval.stack(position(summary.percent(COUNT))), texture.pattern(myvar)) 回答1: Taking the

Wrap labels in semi donut pie chart using d3 js

不羁岁月 提交于 2019-12-11 15:32:49
问题 Not able to wrap labels of semi donut pie chart which is developed using d3 js. I tried using CSS by giving word-wrap, max-width etc., but it's not working. How can I warp the text labels if the labels are having more than three to fours words? Here is my fiddle: https://jsfiddle.net/SampathPerOxide/hcvuqjt2/22/ var width = 400; var height = 300; //this is the double because are showing just the half of the pie var radius = Math.min(width, height) / 2; var labelr = radius + 30; // radius for

Amchart json url pie chart does not occur

佐手、 提交于 2019-12-11 14:04:14
问题 First of all I am very new to using JavaScript. I am trying to create a pie chart using the Amchart library, but the chart does not appear. It's not Cors. Microsoft has been added to work with asp.net.cors. I think the data is from the set. If I fix my ratings as a percentage, I think the error will be resolved. Could you suggest a solution? Thank you This is my code. What is wrong? <title> trying pie chart</title> <meta name="description" content="chart created using amCharts live editor" />