Drawing various types of Graph
I have a list of vendors along with their Rating % in an internal table . I need to draw a graph for the same . I want to use basic report only . Not ALV . Can u suggest a FM and with that i can draw a graph for the same.
If possible can anybody please give me a sample report ..
go to SE80 and choose function group from the drop down list box and enter BUSG in the input field. Then click on the display button next to it.
You will see all the function modules in that Function Group.
<i>And the o/p is not english . How to see the o/p in English language ?</i>
I didnt understand this question, sorry.
Check out those programs i gave, they use FM <b>GRAPH_MATRIX_3D</b> to show the graph. follow the code in those programs , its quiet simple .
Regards
Raja
Similar Messages
-
Revision: 4088
Author: [email protected]
Date: 2008-11-12 11:59:22 -0800 (Wed, 12 Nov 2008)
Log Message:
Correction for FXG -> SWF transcoding - ensuring various types of shapes are consistently handled. The x and y properties will be applied via translation in a PlaceObject3 matrix rather than modifying the shape origin.
QE: No
Doc: No
Checkintests: Pass
Modified Paths:
flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/AbstractFXGGraphics.java -
Various types of KFs in one infocube
hi,
is it ok to design cube with various types of KFs i.e.: cumulative, non-cumul with value change and non-cumul with input and output?
Regards,
AndrzejHi,
You can use the combinations and you will have no problem.
Today - Indian Republic Day -
How to draw a directed 2D graph in java
how to draw a directed 2D graph in java?-if anybody can suggest some tutorials about this topic or can suggest the way to draw the graph.......how can i do that.......if the nodes of the graph has X and Y co-ordinate.........and the neighbours of each node are known.......suppose
node1 has neighboures node2,node3 and node4.....node2 has node5 and node3 as neighbours.....in this way....so directed edge from node1 to node2,node3,and node4......
or if u can suggest other way out......plz reply....prometheuzz wrote:
JosAH wrote:
If you can draw a line between two points (x,y) and (x',y') you can draw an edge.
If you can draw one edge you can draw all edges of a graph.Proof by induction!
; )Yep, I copied/pasted exactly the same answer I gave this poster in another forum; I recognized him by his 'plz'-es and the abundance of punctuation ;-)
kind regards,
Jos -
Can I draw a k-line graph with jfreechart for a Mac app on 10.8?
Hi,
I want to draw a k-line graph on mac, and I haven't find a lib better than jfreechart on doing that work until now, so how can I use it in xcode?
RegardsI believe this version works in 10.6.8.
http://support.apple.com/kb/DL1507 -
Draw line in xy graph(pict​ure)
Hi all,
I import a picture into xy graph than i enable to annotate some indicators.
after i put the indicator in some location in xy graph(picture) i want to draw lines between the indicators.
can somebody help me with that? i'm using LABVIEW 8.2.1
sorry for my english.
Solved!
Go to Solution.
Attachments:
test1.vi 172 KB
test.jpg 14 KBHave a look at my example from long ago.
Here;s a quick and diry draft modification of your VI, see if it works for you. (lines are drawn between annotations when OK is pressed).
LabVIEW Champion . Do more with less code and in less time .
Attachments:
test1MOD.zip 43 KB -
I want to have a line graph where the user inputs variables
in a text box and then the graph is generated by the click of a
button. Does anyone know how to do this or know where I could find
a tutorial on this?Check out the MovieClip class for the drawing API –
moveTo(), lineTo(), etc.
The rest will just be interface design and some maths.
For some reason I think that kglad has posted some code in
the forums for at least parts of such a thing. -
How to draw an interactive network graph in JSP
hi all,
I want to draw a network graph in web page by reading data from database. In the graph, there are some points with lines between them. And I need some interactive features. If I put the mouse on the point, some information should be displayed. I could click the point to jump to the other pages. And I could change the layout of the network graph by dragging the point.
JFreeChart can not draw the network graph and has limited interactive feature. Could anybody give me some solution?
Thanks a lot!
fancyu can find all what u need here:
http://jakarta.apache.org/commons/fileupload/
i think it will help u a lot -
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class GrafTemp extends JApplet {
static double[][] t = {{37.5,37.9},{38.1,38.21},{36.2,36.8},{37.9,38.0},{35.4,35.6},{36.7,37.3},{37.1,36.7}};
public void init() {}
public void start() {}
public void stop() {}
public void destroy() {}
public void paint(Graphics g) {
g.drawString("Graficni prikaz temperature pacienta",10,15);
g.drawString("41",10,40);
g.drawString("40",10,70);
g.drawString("39",10,100);
g.drawString("38",10,130);
g.drawString("37",10,160);
g.drawString("36",10,190);
g.drawString("35",10,220);
g.drawString("1",55,235);
g.drawString("2",80,235);
g.drawString("3",105,235);
g.drawString("4",130,235);
g.drawString("5",155,235);
g.drawString("6",180,235);
g.drawString("7",205,235);
g.drawLine(40,35,240,35);
g.drawLine(40,50,240,50);
g.drawLine(40,65,240,65);
g.drawLine(40,80,240,80);
g.drawLine(40,95,240,95);
g.drawLine(40,110,240,110);
g.drawLine(40,125,240,125);
g.drawLine(40,140,240,140);
g.setColor(Color.red);
g.drawLine(40,155,240,155);
g.setColor(Color.black);
g.drawLine(40,170,240,170);
g.drawLine(40,185,240,185);
g.drawLine(40,200,240,200);
g.drawLine(40,215,240,215);
Hey. In the code you see a 2-dimensional table t and what I want to do know is to draw a line with that numbers on the graph that is already created. How can I do that?// <applet code="GT" width="300" height="250"></applet>
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
import javax.swing.*;
public class GT extends JApplet {
public void init() {
setLayout(new BorderLayout());
add(new GrafPanel());
// Using a separate graphics component will behave better in an applet.
class GrafPanel extends JPanel {
double[][] t = {
{37.5, 37.9}, {38.1, 38.21}, {36.2, 36.8}, {37.9, 38.0},
{35.4, 35.6}, {36.7, 37.3}, {37.1, 36.7}
AffineTransform xform;
boolean firstTime = true;
public GrafPanel() {
initializeTransform();
protected void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2 = (Graphics2D)g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
drawGrafStructs(g);
for(int j = 0; j < t.length; j++) {
g2.setPaint(Color.green.darker());
Point2D.Double p = modelToView(j, t[j][0]);
g2.fill(new Ellipse2D.Double(p.x-2, p.y-2, 4, 4));
g2.setPaint(Color.blue);
p = modelToView(j, t[j][1]);
g2.fill(new Ellipse2D.Double(p.x-2, p.y-2, 4, 4));
if(firstTime) firstTime = false;
/** Transform our model values to the view coordinate system. */
private Point2D.Double modelToView(double x, double y) {
Point2D.Double view = new Point2D.Double();
Point2D.Double model = new Point2D.Double(x, y);
xform.transform(model, view);
if(firstTime)
System.out.printf("model = [%.1f, %.1f] view = [%5.1f, %.1f]%n",
x, y, view.x, view.y);
return view;
private void initializeTransform() {
// Create scales for hard-coded graf.
double[] scales = getScaleFactors();
double xScale = scales[0];
double yScale = scales[1];
// Translate to the origin of the graf in view coordinate system.
double x0 = 55; // viewMinX
// For ordinate: move to bottom of graf at viewMaxY = 215 and
// continue down to the view equivalent of modelValue = 0 which
// is yScale * modelMinVal in view coordinate system. This point
// lies below/outside our gui, of course.
double y0 = 215 + yScale*35;
xform = AffineTransform.getTranslateInstance(x0, y0);
// Multiply the y scale by -1 so that we can count positive
// y upward from the origin along the graf ordinate.
// Java counts positive y downward from its origin which
// lies in the upper left corner of our applet. So we are
// repositioning our downward-looking view from the upper left
// corner to the model origin at modelY = 0, looking upward.
xform.scale(xScale, -yScale); // - sign flips y values
private double[] getScaleFactors() {
// Since graf structure values are hard-coded (vs. resizable)
// we only need to compute these scale values one time.
// The graf line y values form the viewY maximum/minimum.
// The abcissa values define the viewX maximum/minimum.
// The data values (t) define the model maxima/minima.
// view max/min values model max/min values
// minX = 55 minX = 1
// maxX = 205 maxX = 7
// minY = 35 minY = 35
// maxY = 215 maxY = 41
// _scale = view _domain / model _domain
int viewMinX = 55;
int viewMaxX = 205;
int viewMinY = 35;
int viewMaxY = 215;
int modelMinX = 1;
int modelMaxX = 7;
int modelMinY = 35;
int modelMaxY = 41;
double xScale = (double)(viewMaxX - viewMinX) / (modelMaxX - modelMinX);
double yScale = (double)(viewMaxY - viewMinY) / (modelMaxY - modelMinY);
return new double[] { xScale, yScale };
private void drawGrafStructs(Graphics g) {
g.drawString("Graficni prikaz temperature pacienta",10,15);
g.drawString("41",10,40);
g.drawString("40",10,70);
g.drawString("39",10,100);
g.drawString("38",10,130);
g.drawString("37",10,160);
g.drawString("36",10,190);
g.drawString("35",10,220);
g.drawString("1",55,235); // min x value
g.drawString("2",80,235);
g.drawString("3",105,235);
g.drawString("4",130,235);
g.drawString("5",155,235);
g.drawString("6",180,235);
g.drawString("7",205,235); // max x value
g.drawLine(40,35,240,35); // min y value
g.drawLine(40,50,240,50);
g.drawLine(40,65,240,65);
g.drawLine(40,80,240,80);
g.drawLine(40,95,240,95);
g.drawLine(40,110,240,110);
g.drawLine(40,125,240,125);
g.drawLine(40,140,240,140);
g.setColor(Color.red);
g.drawLine(40,155,240,155);
g.setColor(Color.black);
g.drawLine(40,170,240,170);
g.drawLine(40,185,240,185);
g.drawLine(40,200,240,200);
g.drawLine(40,215,240,215); // max y value
} -
Various types of sound out of center channel on
So lets see, quicktime movie trailers, music in winamp, games,?MSN nudge sound, ?-they all come out all 5. channels (Z-5500s)?But the audio for flash movies I've had on my computer, some WMP videos, MSN new message sounds - these are all center channel only - and werent on my last system.
another thing - if I change the audio settings under control panel to quadraphonic - they do come out all the speakers, back to 5....... center channel only. its very distracting and stupid to not be utilizing all the speakers for things like a video. whats the deal here? Thanks for the help in advance.apparently the issue might be that the X-Fi/console just plays mono encoded material through center only?
i preferred when it utilized all the speakers for things like that anyways on my audigy gamer...
is this the case?
edit: CONFIRMED. I found the msn sounds, and haha the NUDGE IS STEREO and the TYPE is MONO. Explains everything! now to get Creative to fix it....
Further:
with CMSS3D off, mono will play over both R and L, just with no seperation of course. (but then your rears center will never be used by pretty much anything outside of games)
with it On XPAND, it will play through center only. (4 not being used)
with it on SURROUND, it will play through center and rears, but not front L and R. (the 2 most important ones arguably not being used)
seemingly on my Audigy , all speakers would be used even for mono sources. So am I correct in guessing they changed things?
All speakers should be used for mono sources.
Can creative update this in a new driver?
EDIT: ARG I just found out it only happens in "entertainment mode" at that! Game mode does 4/5 (not centre). What is the reasoning for this?Message Edited by deusfaux on 03-0-200609:2 PM -
Assigning values of various types to a user defined CLR type
I have implemented a CLR datatype. I can assign string values to variables of the type like this (implemented in the Parse method):
declare @v MyType
set @v = '10'
But when I try:
declare @v MyType
set @v = 10
I get:
Msg 206, Level 16, State 2, Line 3
Operand type clash: int is incompatible with MyType
How do I implement a conversion of integer types (bigint, int, smallint, decimal...) to my type, to allow a simple assignment like that to work?
Thanks.
Gudmundur KarlssonI can't but I can add some information which might help. The type is very simple (sorry I have to skip the actual implementation of the member data and the methods):
[Serializable]
[Microsoft.SqlServer.Server.SqlUserDefinedType(Format.UserDefined, MaxByteSize = 1024)]
public struct MyType : INullable, IBinarySerialize
// Private members
private bool m_Null;
// ... three or four more member variables
public override string ToString()
... // My code converts the internal state to a string
public bool IsNull
get
// Put your code here
return m_Null;
public static MyType Null
get
MyType h = new MyType();
h.m_Null = true;
return h;
public static MyType Parse(SqlString s)
... // Here is where I read the string and save the value in internal format in member variables
// More methods
void IBinarySerialize.Read(System.IO.BinaryReader r)
m_Null = r.ReadBoolean();
if (!m_Null)
void IBinarySerialize.Write(System.IO.BinaryWriter w)
w.Write(m_Null);
if (!m_Null)
I want to implement a method like Parse which accepts a SQL server numeric type and converts it to my type. To allow me to assign integers to a variable of my type, without having to convert to string first.
Thanks
Gudmundur Karlsson -
Data from various types in HRFORMS
Hi all,
I am using HRFORMS for printing the payslip ( and not pe51) . But our payslip have some data from time tables too. If I keep our form catagory as payslim renumeration, the metastars of time are inactive in that and not displayed. If I choose form type as time, it do not shows payroll metastars. But our payslip requires both type of data.
Can anyone please suggest what to do here?
Regards,
RonnieHello Martin,
in the example https://gist.github.com/ricma/cf81829181cfd4e86354 the JSONModel is used. JSONModel is a client-side model. Each of the two tables (person table, phone table) needs its own data and model. In order to synchronize models after editing a table cell, two conversion functions are needed. One function converts person data into phone data, the other converts phone data into person data (see example for implementation):
function makePhoneList(oPersonList) {
function makePersonList(oPhoneList) {
Furthermore, two callback functions are needed. These callback functions shall be called whenever a table cell is modified:
function personModelChanged(oControlEvent) {
oPhoneData = makePhoneList(oPersonData);
oPhoneModel.setData(oPhoneData);
oPersonTable.addColumn(new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: "Name"}),
template: new sap.ui.commons.TextField({
value: "{personModel>name}",
change: personModelChanged})}));
function phoneModelChanged(oControlEvent) {
oPersonData = makePersonList(oPhoneData);
oPersonModel.setData(oPersonData);
oPhoneTable.addColumn(new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: "Phone Number"}),
template: new sap.ui.commons.TextField({
value: "{phoneModel>number}",
change: phoneModelChanged})}));
The solution works but has some disadvantages:
data and models have to be synchronized manually
for n models, 2n-2 conversion functions are needed
every modification causes creation of at least n-1 data structures and models
Best regards,
Frank -
Various Types of Automatic Data Detreminations And Rules in SD
Hi All.
Can you please let me know what are the different kinds of automatic determinations take place in SD module and what is the criteria on which it is determined?
For ex :- Pricing Procedure Determination :- Sales area + Cust Prc.Proc + Doc Pric Proc
Points are assured !!!Hi Ajay,
1.Sales document -
Sales Area+ Document Type
2.Item category determination for Sales -
Document type+ Item category Group+ Usage
+ High level Item Category
3 Schedule line category determination -
Item category of
the corresponding item+ MRP type of the Material.
4 Delivery document determination -
Delivery document
default type attached to Sales document type
5 Item category determination for Delivery document -
Copy form Sales document or Delivery document+ Item
category grp
6 Shipping Determination -
Deliver Plant
+ shipping condition (Customer Master)
+ Loading group(Matrial Master)
7 Route determination -
Departure zone of the shipping pt(Customizing)
+ shipping condition(SP)
+ Transport group(MM)
+ Transportation zone of the Ship to party(General Data)
8.Storage location determination -
Shipping point
+ Delivery plant
+ storage condition
9 Picking determination -
On bases of MALA rule
Delivery Plant
+ Loading Group
+ Storage condition(MM)
(storage rule also assignment to Delivery type)
10 Account determination----- Chart of Accounts
+ Sales Org
+ Account grp (CM-Payer)
+ Account grp(MM)
+ Account key
11 Business area determination --Plant/Valutaion Area
OR
Sales area
OR
Item division + Plant
12 Plant determination -
Customer -Plant info record, From customer master SH party, Delivery Plant from MM
13 Out put determination -
Output determination at Sales document level, Delivery level, Billing level
14 Text determination 1) Info record - Material and Customer or Customer Master Information Record
2) Customer Master (General text, Accounting text, Sales text)
3) Material master text (Sales text or PO text)
15 Shipping point determination -- Delivery plant
+ Loading group
+ Shipping Condition
16 Picking determination -
Delivery Plant
+ Loading Group
+ Storage condition
Revert for further clarification.
Regards
Amit Gupta
Edited by: Amit Gupta on Sep 15, 2008 10:32 AM -
Various types of Customs declaration
Hello All,
1) Could you please help me to understand various processes available in Customs declaration from both Import / Export?
2) How those differs from each processes in GTS system?
Request you to help me on the same.
Thanks & Regards
RahulHi
<u>Incase this question is specific to SRM Workflow & Organization structure
Please refer to the links below.</u>
<b>http://help.sap.com/saphelp_srm50/helpdata/en/68/a47c3c989d501fe10000000a114084/frameset.htm
http://help.sap.com/saphelp_srm50/helpdata/en/b4/9de8cc7d4b11d2b423006094b92d37/frameset.htm
http://help.sap.com/saphelp_srm50/helpdata/en/2c/867d3ca2156c6ae10000000a114084/frameset.htm
http://help.sap.com/saphelp_srm50/helpdata/en/42/f2361d40a01bc7e10000000a11466f/frameset.htm
http://help.sap.com/saphelp_srm50/helpdata/en/b2/afe438b572b407e10000000a114084/content.htm</b>
Hope this will help.
Please reward suitable points, incase it suits your requirements.
Regards
- Atul -
Display documents of various type in new window.
I'm working on an application that needs to upload files from the client to the server and then allow the user to view those files in a separate browser window.
I have the file upload part working, but I don't know how to select the file from the server and have it displayed in a separate window.
Also, the files can be of different types image, plain text, PDF, Excel, or Word Document.
I suspect that some of these can just be displayed in a browser window, but not sure about a couple of them.
Could anyone point me to an example that will help me do this?We can settle it at dinner the next time you're in town...
I actually prefer to tweak the Menu.jsp file myself (backing it up first) towards the end of line 332, just before the img tag for the Images/blank.gif reference.
<% if (SystemPermissionManager.hasPermission(Permissions.TEMPLATE_EDITOR, user)) {%><a class="small" href="Admin/TemplateEditor.jsp" target="_blank">TE</a><%} %>
Then you can have it do whatever you want...and I prefer the old-school Template Editor that didn't split it into Query and Display nonesense.
Regards,
Jeremy
Maybe you are looking for
-
How to update multiple Sales Orders with one IDOC using IDOC_INPUT_ORDCHG
Hi Gurus, Here's my scenario: Consider there are 2 Sales Orders for same Purchase Order - Open Quantity Sales Order 1 Article A1 1 Sales Order 2 Article A2 1 Say if I want to change Open Quantity of both SO 1 & SO2 by dispatching 1 Quantity each for
-
How do I fix Error 1602 in Adobe Acrobat X (Windows 8.1)
I just did a clean install of Windows 8.1 (64-bit) on my Dell laptop with 8GB of RAM and an i5 processor. I then installed Adobe Acrobat X from the Adobe download site and used the product key that I have. The install completed successfully and I've
-
The spread sheet that I'm working with adds daily data over a 6 month timeframe. The trendline stops at the newest data point. I would like to know what to expect in 6 months so I can make adjustments to adjust progress. I would like to do this witho
-
ITunes Won't Load on Windows 7
ITunes won't load since the last update. I tried updating to the new beta version, and it still won't load. I have lost my contacts on my iPhone and now I can't load iTunes. I do have another computer running an older version of iTunes and would l
-
Is it normal for iPhoto "11" to take time to "adjust"
when i click an event it opens normally, when i click on a picture to expand it, sometimes stays blurry for a few seconds then sharpens up. is this normal? it never seems to be an issue for full screen mode just the in between sizes after opening an