pie-chart

click event on pie chart in android [closed]

家住魔仙堡 提交于 2019-11-30 09:59:09
I have used to draw pie chart using canvas.. There are approximately 10 arcs in pie chart..i want to perform click event on each arc. Is there any way to do this? or any other way? This is my pie chart view.. MyView.java package android.piechart; import java.util.ArrayList; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import android.util.AttributeSet; import android.util.Log; import android.view.View; public class MyView extends View { private Paint p; private int startX; private int

Non-PIE Binary - The executable 'project name' is not a Position Independent Executable.

安稳与你 提交于 2019-11-30 09:19:24
I uploaded a binary on into iTunes Connect, it was validated and accepted to publish to the App Store. I received an email from Apple, saying that my application is an invalid binary: Dear developer, We have discovered one or more issues with your recent delivery for "Project name". To process your delivery, the following issues must be corrected: iPhone 5 Optimization Requirement - Your binary is not optimized for iPhone 5. As of May 1, all new iPhone apps and app updates submitted must support the 4-inch display on iPhone 5. All apps must include a launch image of the appropriate size. Learn

How to have actual values in matplotlib Pie Chart displayed (Python)?

◇◆丶佛笑我妖孽 提交于 2019-11-30 05:24:42
问题 I have a pie chart drawing the values extracted from a CSV file. The proportion of the values are currently displayed with the percentage displayed "autopct='%1.1f%%'". Is there a way to display the actual values which are represented in the dataset for each slice. #Pie for Life Expectancy in Boroughs import pandas as pd import matplotlib import matplotlib.pyplot as plt # show plots inline %matplotlib inline # use ggplot style matplotlib.style.use('ggplot') #read data lifeEx = pd.read_csv(

How to avoid labels overlapping in a D3.js pie chart?

荒凉一梦 提交于 2019-11-30 05:23:15
I'm drawing a pie chart using D3.js with a quite simple script. The problem is that when slices are small, their labels overlap. What options do I have to prevent them from overlapping? Does D3.js have built-in mechanisms I could exploit? Demo: http://jsfiddle.net/roxeteer/JTuej/ var container = d3.select("#piechart"); var data = [ { name: "Group 1", value: 1500 }, { name: "Group 2", value: 500 }, { name: "Group 3", value: 100 }, { name: "Group 4", value: 50 }, { name: "Group 5", value: 20 } ]; var width = 500; var height = 500; var radius = 150; var textOffset = 14; var color = d3.scale

How can I put the labels outside of piechart?

狂风中的少年 提交于 2019-11-30 05:00:12
问题 How can I put the label outside the pie chart So that labels will be in the proper place? Product <- c("Product1","Product2","Product3","Product4","Product5","Product6","Product7") Value <- c(1000000,200002,599996,1399994,2199992,2999990,3799988) df <- data.frame(Product,Value) df$Label <- paste(Product, paste(round(((df$Value/sum(df$Value))*100),2),"%"), sep="-") library(ggplot2) p <- ggplot(df, aes(x = 1, y = Value, fill = Product)) + geom_bar(stat = "identity") p <- p + coord_polar(theta =

Flot pie chart gives error in firebug: “uncaught exception: Invalid dimensions for plot, width = null, height = null”

流过昼夜 提交于 2019-11-30 04:26:56
I using flot pie chart for plotting pie charts. but it shows error in firebug that uncaught exception: Invalid dimensions for plot, width = null, height = null I have given the height and width from stylesheet also. and tried also like this <div id="placeholder1" style="width:140px;height:140px" ></div> how to resolve this? Check these: You include the jQuery library first and then flot js library Wrap the whole code within $(document).ready() handler function. you bind the flot with correct id and there is no repeat of same id . if your div is dynamic i.e. appeared to DOM after page load then

Show Pie chart in Android Application [closed]

蓝咒 提交于 2019-11-30 02:16:15
I want to show pie chart in my android application like below: So any one idea about this how can I achieve this? If any library for that then please suggest me. Thank in advance. In order to show different types of chart,you can use AchartEngine library available in Android or Google charts API here Kindly refer to this link for more information.there are also several demos available on internet. You need to do litle bit customisation according to your need. :) You can ask if you have any furher queries!! Vaibhav Agarwal Here are some useful libraries AchartEngine , AndroidPlot , charts4j ,

ggplot use small pie charts as points with geom_point

烂漫一生 提交于 2019-11-30 00:44:40
I would like to make a graph with ggplot as shown below. The idea is to plot "percentage matches" between two categorical variables. It is easy to come close by altering the size of points, but I wondered if it is possible to make these small pie charts... An example code for plotting this with the size of points as a measure of the score. temp <- data.frame(Exercise=c(1, 1, 1, 2, 2, 2), Name=c(1, 2, 3, 1, 2, 3), Score=c(0.2, 0.5, 0.3, 0.9, 1.0, 0.6)) ggplot(temp) + geom_point(aes(Exercise, Name, size=Score)) How can this code be altered to give something close to the figure below? Using a

How to set export csv option to button in google visualization Pie chart

守給你的承諾、 提交于 2019-11-29 17:58:06
I am using Google visualization pie chart for showing transaction state. I want to export to csv, there is functionality ToolBar to export csv,html,iGoogle but I want to specific to csv only without select options. you can use static method --> dataTableToCsv google.visualization.dataTableToCsv this will create a csv string of the data in a data table. it will not export the column headings, but those can be added manually... see following working snippet... google.charts.load('current', { packages: ['corechart'] }).then(function () { var data = google.visualization.arrayToDataTable([ ['Label'

pandas pie chart plot remove the label text on the wedge

爱⌒轻易说出口 提交于 2019-11-29 17:15:55
问题 the pie chart example on pandas plotting tutorial http://pandas.pydata.org/pandas-docs/version/0.15.0/visualization.html generates the following figure: with this code: import matplotlib.pyplot as plt plt.style.use('ggplot') import numpy as np np.random.seed(123456) import pandas as pd df = pd.DataFrame(3 * np.random.rand(4, 2), index=['a', 'b', 'c', 'd'], columns=['x', 'y']) f, axes = plt.subplots(1,2, figsize=(10,5)) for ax, col in zip(axes, df.columns): df[col].plot(kind='pie', autopct='%