Interact with PIE Chart in iphone
Dear all,
I've got the request to implement MII screen delivering some data through PIE Charts. This should be deliver through iphone. The request is to have to capability to interact with the applet (or the legend), to drill down to the data behing the chart, and providing later an igrid with more details about the summary displayed in the chart.
As far as i know the iphone doesn't support applets. And if i display the chart as image through a servlet, how the user can drill down and interact?
what could be the approach then? What are your recommendations?
I'm using XMII 11.5.
Dear all,
Thank you for the feedback. I will take a look to the examples. I'm not entirely sure if the issue is related to the data format.
This is part of my code
$(function () {
var capa= [];
capa =$("#capas").contents().find("body").text();
data=capa;
//data =[ { label : " Open ", data : 121 } , { label : " Overdue ", data : 188 } ];
Basically the data comes from an iframe that contains a servlet that gets the data from the database. Then i formated the data through the XSLT. When i assign the hardcoded data that you seea as comment, the pie chart is displayed. When i assign the data that comes from the iframe it doesnt't work. The data i see in the iframe looks exactly the same as the hardcoded string. If anyone sees the problem will be great.
I will play with the examples provided.
Thanks
Similar Messages
-
Hi Experts!!
I've a little problem with a Pie Chart, I want to present a Pie Chart with 3 values which are defined on the Data Series, when I deploy I get the message: "Expected exactly 1 data series in XXXXX chart. Extra data series ignored". I don't understand why, because if I try to do a Column Chart with the same information, it works Ok!
Can anybody help me please?.
Emilio.Multiple data series with Pie Chart is not possible. you must have one series if u r using pie chart
-
Is Apple allow core plot framework to draw Pie chart in iPhone application?
Is Apple allow core plot framework to draw Pie chart in iPhone application?
http://code.google.com/p/core-plot/wiki/AppsUsingCorePlotWrong forum. Ask in the developer's forum.
-
Problems with pie chart formatting - APEX v2
Hi - I have created a region with an SVG Pie Chart and set the CSS to display the three segments as red, yellow and green using one of the examples from a previous forum posting. That all works fine, but I still have two issues with the chart:-
- the legend is displaying too big and is overlapping the right hand region border which looks messy. Is there anyway to force the size of the legend as there is lots of blank space to the right of the labels/values?. If not, is there any way to get the legend to display at the bottom of the area rather than to the side of the chart?
- the pie chart is 3D but the colours are only displaying on the side, not the top. Is there something I need to set to get this to work OK? Current CSS included below.
Thanks Caroline
text{font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;fill:#000000;}
tspan{font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;fill:#000000;}
text.title{font-weight:bold;font-size:14;fill:#000000;}
text.moredatafound{font-size:12;}
rect.legend{fill:#EEEEEE;stroke:#000000;stroke-width:1;}
text.legend{font-size:10;}
#background{fill:#FFFFFF;stroke:none;}
rect.chartholderbackground{fill:#ffffff;stroke:#000000;stroke-width:1;}
#timestamp{text-anchor:start;font-size:9;}
text.tic{stroke:none;fill:#000000;font-size:12}
line.tic{stroke:#000000;stroke-width:1px;fill:none;}
#dial{stroke:#336699;stroke-width:2px;fill:#336699;fill-opacity:.5;}
#dial.alert{fill:#FF0000;fill-opacity:.5;}
#dialbackground{stroke:#000000;stroke-width:none;fill:none;filter:url(#MyFilter);}
#dialcenter{stroke:none;fill:#111111;filter:url(#MyFilter);}
#dialbackground-border{stroke:#DDDDDD;stroke-width:2px;fill:none;filter:url(#MyFilter);}#low{stroke-width:3;stroke:#336699;}
#high{stroke-width:3;stroke:#FF0000;}
#XAxisTitle{letter-spacing:2;kerning:auto;font-size:14;fill:#000000;text-anchor:middle;}
text{font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;fill:#000000;}
tspan{font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;fill:#000000;}
text.title{font-weight:bold;font-size:14;fill:#000000;}
text.moredatafound{font-size:12;}
rect.legend{fill:#EEEEEE;stroke:#000000;stroke-width:1;}
text.legend{font-size:10;}
#background{filter:url(#MyFilter);fill:#555555;stroke:none;}
rect.chartholderbackground{fill:#ffffff;stroke:#000000;stroke-width:1;}
#timestamp{text-anchor:start;font-size:9;}
text.tic{stroke:none;fill:#000000;font-size:12}
line.tic{stroke:#000000;stroke-width:1px;fill:none;}
#dial{stroke:#336699;stroke-width:2px;fill:#336699;fill-opacity:.5;}
#dial.alert{fill:#FF0000;fill-opacity:.5;}
#dialbackground{stroke:#000000;stroke-width:none;fill:none;filter:url(#MyFilter);}
#dialcenter{stroke:none;fill:#111111;filter:url(#MyFilter);}
#dialbackground-border{stroke:#DDDDDD;stroke-width:2px;fill:none;filter:url(#MyFilter);}#low{stroke-width:3;stroke:#336699;}
#high{stroke-width:3;stroke:#FF0000;}
#XAxisTitle{letter-spacing:2;kerning:auto;font-size:14;fill:#000000;text-anchor:middle;}
#YAxisTitle{letter-spacing:2;kerning:auto;font-size:14;fill:#000000;text-anchor:middle;writing-mode:tb;}
.XAxisValue{font-size:8;fill:#000000;}
.YAxisValue{font-size:8;fill:#000000;text-anchor:end;}
.AxisLabel{font-size:8;fill:#000000;}
.nodatafound{stroke:#000000;stroke-width:1;font-size:12;}
.AxisLine{stroke:#000000;stroke-width:2;fill:#FFFFFF;}
.GridLine{stroke:#000000;stroke-width:0.3;stroke-dasharray:2,4;fill:none;}
g.dataholder rect{stroke:#000000;stroke-width:0.5;}
.legenditem rect{stroke:#000000;stroke-width:0.5;}
#data1 ,rect.data1 ,path.data1{fill:#FF0000;}
#data2 ,rect.data2 ,path.data2{fill:#FFFF00;}
#data3 ,rect.data3 ,path.data3{fill:#00FF00;}hi Kishore,
For this we have to change the .pcxml file for the pie chart .This is the path
\OracleBI\web\app\res\s_oracle10\popbin\pie.pcxml
http://obiee101.blogspot.com/2008/08/obiee-cusstomising-your-pcxml.html
http://debaatobiee.wordpress.com/2009/09/26/customising-graph-obiee-a-charismatic-gradient-effect/
I am not sure whether it will work or not but try it out
thanks,
saichand.v -
Problem with Pie chart, Store Procedure and Category Axis
Hi All,
I'm having a problem when i try to use a Pie Chart with a store procedure
when Category Axis - Field value is "none", the chart appears, but the description say Undefined
but when i put any field from store procedure, the chart doesn't show.
when I try the same with a normal SQL statement, all data was displayed
my store procedure only have 2 columns
n - numeric
state - text
The Store Procedure and the SQL, returns the same data in the same order
Thanks in advance
CristianHi guys,
I need guide on creating a system using store procedure, referring to this thread: JDBC System Connection VS BI JDBC System Connection
Hope you can help me out.
Thanks a lot,
Sarah -
Interactive Bar/pie chart and line graph, data from excel/text file -urgent
Hi,
I have a huge data in excell sheet which keeps updating every month. Data basically consists of service provider and there respective subscribers from various regions of the country over the years. The requirement is to give the viewers an interactive page where in they can make various combinations and can compare, cross examine data according to thier choice.
We want the pie chart / bar graph or line graph to be created on the fly according to the combination made by the user.
The site is hosted on a red hat linux server. how can a connection to the excel spreadsheet be made or is it possible to read from the text file if the entire data is exported to a text file.
Is there any ready made tool/code available which can be customised according to the need.
Thanx in advance
Regards
PrakashI certainly wouldn't pay for the graphing package at the previous link. check out http://www.object-refinery.com/jfreechart/ for a free, open-source, much better looking graphing package.
-
Creating custom reports with Pie Chart
Hello,
I've got a little problem while I'm creating custom reports with SQL Chart.
For example, I want to have a Pie Chart that represent the distribution of the version for a software, i wrote my query with no problem, the result is in good format.
My Pie Chart is fine except there are no percentage displayed. The legend on the right is fine with correct count of different version, but no percentage on the pie chart.
Any idea?
Thanks in advance,
FabHello,
well, I think this is not possible to ask OEM to print the percentage over the chart.
Anyway, I sugget you to rewrite your query to compute the % in the query itselft thus to have the pct displayed on the rigth.
Let's say you want to display the database files' size with such a query: select file_name name,bytes val from dba_data_files;
This is the way to display the % of each file size over the total (remark the above query has been embeded in the new one).
select name,ratio_to_report(val) over() pct
from ( select file_name name,bytes val from dba_data_files )
order by val desc
It is quite easy to adapt such a tip to your own query.
Regards,
Noel Talard -
I am using the CL_GUI_CHART_ENGINE to show pie charts in a dashboard format. One of my charts has just started to randomly decide to display the pie slices incorrectly.
this is the XML for the data
<Chartdata>
<Categories>
<Category>Fax</Category>
<Category>Phone call</Category>
<Category>Phone Support</Category>
<Category>Emergency service</Category>
<Category>Web</Category>
<Category>Email</Category>
<Category>EDI</Category>
</Categories>
<Series label="Series" customizing="Series">
<Point label="$26,815.03">
<Value type="y">26,815.03</Value>
</Point>
<Point label="$17,045.12">
<Value type="y">17,045.12</Value>
</Point>
<Point>
<Value type="y">0.00</Value>
</Point>
<Point>
<Value type="y">0.00</Value>
</Point>
<Point label="$33,914.70">
<Value type="y">33,914.70</Value>
</Point>
<Point label="$23,731.63">
<Value type="y">23,731.63</Value>
</Point>
<Point label="$973.08">
<Value type="y">973.08</Value>
</Point>
</Series>
</Chartdata>
The problem is, the last point on the pie chart is showing like it is about 85% of the pie. I admit, this is my first attempt at this, but why would it be OK, then suddenly NOT OK. Any ideas on what i may have coded incorrectly? what does the type indicator in the Value tag represent? i have looked at the documentation available for the chart engine, and it is pretty weak on specifics.
by the way, the label on the very large part of the pie is $973.08, which is considerably less than the values in the other "slices". The data is correct, as far as having the correct values. it is just suddenly displaying it incorrectly, putting the wrong size slice with the categories.
Edited by: David Knittle on Nov 22, 2010 1:32 PMcould it be because the chart is interpreting the values as text values instead of numbers? and 9 would then be much larger than ther other values? I'd try values without comma....tell it it's a numeric value like 12345.67.
-
I am new to Java and am having problems and I am in need of some help. I have written the code for my Mortgage Calculator but do not know how to get my chart to work. I found an example of the chart code in my text book but I am not sure if I wrote it wrong. When I run the MortCalc code it compiles but the Pie Chart code won't. I tried to run the chart code by itself but it prints out another calculator. My question is 1.) Is my chart code written wrong? and 2.) How do i enter it into my MortCalc code so that I get my chart?
**Below I have included the assignment(so you know what I am doing exactly) and below that the pie chart code just in case you have questions. Thanks for any advice you can give.
**If you need the rest of the code I can post it too. It was too long to post with the pie chart code.
Assignment:
Write the program in Java(w/ a GUI) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage adn the user's selection from a menu of availible mortgage loans:
--7 yrs @ 5.35%
--15 yrs @ 5.5%
--30 yrs @ 5.75%
Use an array for the mortgage data for the different loans. Read the interst rates to fill the array from a sequential file. Display the mortgage payment amount followed by the loan balance and interest paid for each payment over the term of the loan. Add graphics in the form of a chart.Allow the user to loop back and enter a new amount and make a new selection of quit. Please insert comments in the program to document the program.
CODE:
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Rectangle;
//Class to hold a value for a slice
public class PieValue {
double value;
Color color;
public PieValue(double value, Color color) {
this.value = value;
this.color = color;
// slices is an array of values that represent the size of each slice.
public void drawPie(Graphics2D g, Rectangle area, PieValue[] slices) {
// Get total value of all slices
double total = 0.0D;
for (int i=0; i<slices.length; i++) {
total += slices.value;
// Draw each pie slice
double curValue = 0.0D;
int startAngle = 0;
for (int i=0; i<slices.length; i++) {
// Compute the start and stop angles
startAngle = (int)(curValue * 360 / total);
int arcAngle = (int)(slices[i].value * 360 / total);
// Ensure that rounding errors do not leave a gap between the first and last slice
if (i == slices.length-1) {
arcAngle = 360 - startAngle;
// Set the color and draw a filled arc
g.setColor(slices[i].color);
g.fillArc(area.x, area.y, area.width, area.height, startAngle, arcAngle);
curValue += slices[i].value;// Draw each pie slice
double curValue = 0.0D;
int startAngle = 0;
for (int i=0; i<slices.length; i+) {
// Compute the start and stop angles
startAngle = (int)(curValue 360 / total);
int arcAngle = (int)(slices.value * 360 / total);Look here and i think you will find some syntax errors.
Count the brackets. -
Illustrator CC errors reopening docs with pie charts
I created some sample pie charts for a client - had no problems with the document while it was open. It saved fine, I even saved it as an EPS. However, when I try to reopen the document, it gives me an error (whether I open the illustrator or eps file).
I haven't been able to track down the reason for it. It has 6 sample pie charts on it. The text and labels are simply text or lines drawn on a separate layer. The "hole" is simply a white circle on top of the chart. There isn't really anything complicated with it, so I'm not sure where the error is. I've already recreated this but had the same problem again.
This does not happen for all pie charts - there is another file I created with other samples, and I've been able to reopen that. The odd thing is that even though I get the error, it seems to partially open the file - only a few of the elements show up. Not sure if that would help you to track down the bug or not. See screenshot below.I have two internal hard drives. One has the applications, the other is where I save my files. But I don't think that would be the issue since I can save/close/open other illustrator files, it's just something about these files. I have another file with bar charts - no problem with that one.
I thought the problem might have to do with some of the pie charts having strokes applied. But I did a test with strokes applied to the chart (center, inside, outside) and I was still able to open them after closing them.
So there is something else that I can't figure out. Is there a way to find out from the error code what the error even means or what kind of object or effect it is in relation to? -
Problem with Pie chart and Hierarchy
I have to display a Pie chart according to a hierarchy.
The top node claims half of the chart.
<u>A hierarchy for example</u>:
Division A 450
Department A1 100
Department A2 150
Department A3 200
The Pie chart is divided to 4 parts (instead of 3), where Division A takes 50%.
I dont want Division A to be seen in the chart.
The best solution would be if WAD could ignore the first category.
Thanks and best regards,
Sigal.In WAD, mark the SUPPRESS_OPENHIERARCHIENODES parameter of the Pie Data Provider.
-
Hi guys,
I am trying do generate a pie chart using JSP or Servlet. I tried out the codings at the www.builder.com site.
But it's not working as it returns "index array out of bounds 0" error.
Has anyone tried it before...
Any help would be much appreciated
the url for the site
http://builder.com.com/5100-6370-1051766.html?tag=searchThe comple JSP code from the site is at :
http://builder.com.com/5110-6370-1051781.html -
Pie chart with two measures and date dimension navigation not working
Hi Experts,
Pie chart with two measures and date dimension navigation not working. Any help is appreciated.
Thanks
VHi Deepak,
I had time dimension in the RPD.
I have stacked bar chart with same time dim like year & month in the report. when I go to legand and set navigation it is working fine. But not with pie chart.
I am not not sure what is the problem. When I click on Pie chart it is not navigating to the target report. Can it be any other issues..??? -
Pie chart with resizable slice ?
Hello All,
Is it possible to create a pie chart with re-sizable slice.. ie user should be able to decrease and increase the area of any slice by just using mouse drag. If I increase area of any particular slice, other adjacent slice should automatically get reduced. Please provide me some pointers on this .
Regards,
DharmendraHi Deepak,
I had time dimension in the RPD.
I have stacked bar chart with same time dim like year & month in the report. when I go to legand and set navigation it is working fine. But not with pie chart.
I am not not sure what is the problem. When I click on Pie chart it is not navigating to the target report. Can it be any other issues..??? -
Pie Chart legend text when drill down too larger
Dear Gurus,
I have this report with Pie chart:
*)Table:
Element Group
Earnings 100
Deductions 30
When drill down (after click on Earnings/Deductions), it become detail like this:
Element Group Classification Name
Earning Regular
Earning Irregular
And the Pie chart legend show this: Earnings, Regular Earnings
->how to remove Earnings?I just want to show classification name as legend.
I use OBIEE 11.1.1.3
Any help will be appreciated
Regards
Joe
Edited by: JoeSSI on Aug 10, 2012 12:33 AM
Edited by: JoeSSI on Aug 10, 2012 12:35 AM
Edited by: JoeSSI on Aug 10, 2012 3:24 AMHi Joe,
There was a bug associated with repeated legends in 11.1.1.3 version.Can you check the below document and see if the mentioned patch helps,
Vertical Bar Charts In OBIEE 11g Display Repeated Labels In The Graph Legend [ID 1376185.1]
Regards,
Dpka
Maybe you are looking for
-
I don't know how to go back to the original look of my Dashboard. I don't know what I did, but now when I click on it, my Words with Friends game comes up and that is all. How do I "reset" it to the original things on it?
-
Open items list, authorization
When I give authorization to a user under Authorizations>>Reports>>Sales Reports>>Open Items List - Full Authorization, the Open Items List does not show up in Reports (as it does for the super users). We are using SAP B1, 2007 A, sp: 01 pl: 08. Tha
-
India Localization - Does it support use of IR / ISO accross OUs
HI Does India Localization support use of IR and ISOs between two different operating Units? we are on version R12.0.6 Regards, Utkarsh
-
Cannot build EJB jar file in NWDS
hello, I changed java beans file, and tried to build jar file again, then the "build EJB archive" context menu is disabled so I can not make EJB jar file! So frustrated.. NWDS recognizes the changes in the java files , right? How come there 's no Bui
-
Lion to Maverick without gaining to moutain lion in-between could that be causing a lot of my problems. No indication was given that I first had to install mt. loin and I had installed all my updates. ibook