How to find intersection point between a lineseries and a vertical line.
I have a lineseries chart (refer the screenshot). As I move the spend slider shown in the attachment, a vertical line is drawn in the chart. (I did this using the cartesian canvas as annotation element - using canvas.moveTo(), canvas.lineTo() functions)
I want to find out the intersection point(y value) where the vertical line meets the lineseries. Can someone help me on this. It will be really helpful.
Thanks,
Jayakrishnan
Here are a few functions I wrote years ago for common chart transformations... the function you're going to focus on for your solution is chartToScreen...
* Converts the screen position to chart value position
* @param thePos - Number - The position you want to convert
* @private
private function getChartCoordinates(thePos:Point):Object
var tmpArray:Array = dataTransform.invertTransform(thePos.x, thePos.y);
return {x:tmpArray[0], y:tmpArray[1]};
* Takes a non-numeric chart value and returns a proper numeric value
* @param inValue - String - The display name of the instance showing on the axis (eg. if we're showing months, it might be 'Sep - 06'
* @param theAxis - IAxis - The axis on which we're looking
public function getNumericChartValue(inValue:String, theAxis:IAxis):Object
var axisCache:Array = new Array({inValue: inValue})
if(!(theAxis is LinearAxis))
theAxis.mapCache(axisCache, "inValue", "outValue", true);
return {numericValue: axisCache[0].outValue}
else
return {numericValue: Number(inValue)};
* Converts the chart values into screen coordinate values
* @param chartX - Number - The display name of the instance showing on the axis (eg. if we're showing months, it might be 'Sep - 06'
* @param chartY - Number - The axis on which we're looking
public function chartToScreen(chartX:Number, chartY:Number, theSeries:Series):Point
var tmpCache:Array = new Array({chartX:chartX, chartY:chartY});
if(theSeries)
theSeries.dataTransform.transformCache(tmpCache, "chartX", "screenX", "chartY", "screenY");
else
dataTransform.transformCache(tmpCache, "chartX", "screenX", "chartY", "screenY");
return new Point(Math.round(tmpCache[0].screenX), Math.round(tmpCache[0].screenY));
* takes a point in mouse position, and runs it through converting to chart coordinates, converts chart coordinate to numeric value if needed
* and then back into mouse position to get the nearest axis snap point
* @param thePoint - Point - The position we're converting
* @private
private function getSnapPosition(thePoint:Point):Point
var chartPoint:Object = getChartCoordinates(new Point(thePoint.x, thePoint.y));
//if either of the axis chart results is not in numeric format, we get the numeric equivalent of it
var chartX:* = chartPoint.x;
var chartY:* = chartPoint.y;
chartX = getNumericChartValue(chartPoint.x, CartesianChart(this.chart).horizontalAxis).numericValue;
chartY = getNumericChartValue(chartPoint.y, CartesianChart(this.chart).verticalAxis).numericValue;
return chartToScreen(chartX, chartY, null);
Similar Messages
-
BCT - how to find the difference between installed BCT and the newest BCT?
Hi,
How do I find the difference between installed BCT and the newest BCT?
or find a description of the newest BCT?
Thank you.
- GunnarHi,
Thank you for your answer.
I am aware of the possibilities you mention.
I am looking for a way to find the parts of the business content that has been modified since I installed our current version WITHOUT installing anything.
That is for example:
If F&R business content has been moved from 3.x technology to 7.0
If there is changes to the F&R content at all
-> if our current version of business content already contains the newest version of Business Content for F&R, then it is not a prerequirement to an F&R project that we update business content.
The possibility to see that the only changes might be in the area of SAP HCM ...
Thank you.
- Gunnar -
How to find the link between tables CRMD_ORDERADM_H and BBP_PDORG ?
HI,All
By TCODE BBP_PD, I cann't find the link by GUID between tables CRMD_ORDERADM_H (Header) and BBP_PDORG (Purchase Organization) , why? how to find this link?
thanks
Jesse.Hello Jianxin,
It depends on document category type.
For Shopping Cart, no link exist between CRMD_ORDERADM_H and BBP_PDORG tables as purchasing organization is defined at item level.
For Purchase Order, using BBP_PDORG-SET_GUID, you get PO header GUID (GUID_HI) in table CRMD_LINK where CRMD-LINK-GUID_SET = BBP_PDORG-SET_GUID.
Regards.
Laurent. -
How to find a realtion between Tcode ,Idoctype and message type
Hello ,
I would like to know the relation between Transaction code,idoc type and Message type.
In which table I can find or which Transatcion I can get all these information..?
Please help me in this....
Thanks in Advance
Regards
PreethiHello Anji,
I want the relation with Transaction code....Could you please tell me....
Thanks in advance
Regards
Preethi -
How to find the differences between 4.6C and 4.7EE
Hi,
The client I am working for planning to upgrade from 4.6C to 4.7. As a ABAP consultant I want to know what are the changes that are made in 4.7 in ABAP. Where can I get the information i.e changes in ABAP from 4.6C to 4.7. Please advise.Please help as this is urgent for me.
Thanks & Regards,
Sam.Hi,
to know the differences in each release
Here is the link for the same
http://help.sap.com/saphelp_nw2004s/helpdata/en/5b/8c3842bb58f83ae10000000a1550b0/frameset.htm
http://service.sap.com/releasenotes
Check this link ... this link will definitely explin u clearly the difference between the two versions...
http://www.stonewayinc.com/clients/sap/bestoftour/presentations/SAP_BOT_2_Furlan_IBM.ppt
See this weblog:
/people/thomas.jung3/blog/2005/05/15/abap-46c-to-640-delta-training
Re: R/3 Enterprise v mySAP ERP 2003 v ECC 5.0 v mySAP ERP 2004
http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000497320&_SCENARIO=01100035870000000112&_OBJECT=011000358700000810532004E
Regards,
Anver -
How to find the difference between Mannual clearing and Automatic clearin
Hi
Can any one suggest how to diffrentiate the documents which are cleared manually and which cleared Automatically.
Thanks and Regards
AnandHi
Normally documents posted manually and automatically will have different document types and document number ranges. For manual clearign we use KZ and in case of auto clearing we use ZP
Thanks!
Rajesh -
How to place a row of photos *equidistant* in a vertical line?
I am finally working on whittling down the Navigation Bar at the top of the Site Menu.
I have learned how to use the Inspector to make all of the photos on this "Table of Contents" page of equal size. (James, thanx for reminding me of the Metric Inspector.) For example, I got all of my thumbnail pix for this page to be 148 x 104 pixels. I de-seleted the "constrain" box to achieve the equality-of-pixel-number thing. No one will notice the lack of constraint.
I also figured out how to get more guide lines to help in the placement of objects on a field, so it is easier to place them in the exact same line.
THE QUESTION NOW IS:
How do I space the photos equidistant apart from each other in a vertical line? Thus far I have four "boxes" -- thumbnails representing the group which yields yet more pages upon which to click. (Pages are listed to the right of the photo thumbnail boxes.) I have all those boxes the same size, everything. Perfect. Wow wow. Blue lines popping up to tell me when to stop. BUT I cannot figure out how to get the spacing between the photos in that vertical line to be the same. PLEASE SEND A LUNCH WAGON AND HELP ME OUT! Thank you.
Lorna in Southern CaliforniaHi Lorna,
You could probably get close enough by eyeballing it, but if you really want to be exact you can use the X,Y coordinates that appear when you click and drag an image. Also, take into account what your page width is....700 by default.
The easy way without all the arithmetic? Here's what I do...(haha)... The middle image is always easy to get centered right...using the blue alignment guides. Then all you have to do is work on getting the two flanking images placed equidistant. It's probably easiest to start with the alignment guides on either side of the page. Just drag the image until it aligns with the side of the page. Then with the image still selected....use the arrow keys on your keyboard and move the image pixel by pixel toward the center image until the spacing between this image and the middle image look good to you. Keep track of how many times you hit the arrow key on your keyboard....could be 10, 20, 30 pixels...because you will want to punch the arrow key the exact same number of times for the image on the other side of the middle one! Let me know if my blind man's method of spacing things isn't clear. Haha....good luck! -
How to find the link between strcture and query technical name
Hi Guru's
How to find the link between Strcture in the query and query technical name. In other way where used list of the structure used in queries?
I know we have table called RSZELTDIR which have the values of strcuture name. from here i do not find any link to query technical name.
Please can anyone help me?
Regards,
SirishaHi ,
For structure and query relationship, the structure has to be a reusable structure( a global one). Then you can right click in on the structure name (in BEX query designer) and select the where used list. You will find all the query names where it is being used.
U can also check out tables RSRREPDIR and RSZCOMPDIR for other query properties.
Thanks,
Amit -
How to find the difference between Project costs & Cost center costs?
Hi all,
Can you please explain me ? What is project Cost & Cost center cost and which are the tables having those fields of project cost & cost center Costs? And how to find the difference between their costs ? And please give me the functional Idea about it?
Thanking you all in Advance...
Regards,
ChandruHi,
goto table COSP:
1) object-no. beginning with 'KS' refer to cost-centre
example: 'KSKOKA4711'
with KS, KOKA = controlling area and 4711 = cost centre
2) OBJNR beginning with 'PR' refer to projects / WBS-element
example PR00001234
Message was edited by: Andreas Mann -
Find intersection/union between two maps
Hello.
I'm trying to find out state changes between two maps.
I have two maps A and B, what I need to do is to find keys in A that doesn't exists in B and keys in B that doesn't exist in A.
If keys exists in both A and B I want to compare the values of those keys.
What would be the most effective way to implement this.
My first plan was to loop through the keys in A to find in B and loop through keys in B and find in A but I guess there is a more effective algorithm.
I'm also thinking about using java.util.Collections to find intersection/union between the keys in the maps but then I need to do a lookup in both
maps.
Any suggestions?
Regards
/FredrikFredrik wrote:
My scenario is this:
I'm writing a Swing app for administration of a clustered environment.
The keys in the map contains ip-address of cluster nodes, the value is a status/state for a node in the cluster.
I want to signal state change for the node in the GUI.
A state change happens if there is a new node in the cluster which means a new entry in the map since last checked or if a node
leaves the cluster a remove of entry in the map since last checked or if the status/state for the entry/ip has changed since last checked.
Regards
/FredrikBy your above senario, i don't think you have two objects of Map, there is only one object and you want to signal the change in GUI, whenever a object is added , removed or only value is changed (Key is same) to the Map.
Then i'll suggest below things:
1) to override hashcode and equal method. (Because whenever the put or putAll methods are called the hashcode and equal method checks in the bucket for equal and similar hashcode, and if its equal , then change the GUI for the existing Map).
2) As suggested earlier, override remove methods. (Whenever any object is removed, accordingly you can change the GUI).
3) As suggested earlier, override put and putAll method( whenever a new object is added, accordingly you can change the GUI).
And for this, i don't think you have iterate through the Map. -
How to find the difference between 2 time values in Java
hi all,
i have 2 time values
String time1="6:20";
String time2="21:30"
How to find the difference between 2 times in Java?
pls help
thanx in advance....Calculating Java dates: Take the time to learn how to create and use dates
Working in Java time: Learn the basics of calculating elapsed time in Java
Formatting a Date Using a Custom Format
Parsing a Date Using a Custom Format -
How to find the relation between tables
Hi
I am working in Oracle R12
How to find the relationship between these tables INV_MIN_MAX_TEMP,po_requisition_lines_all and Per_all_people_f
These two table i have joined with po_requisition_lines_all and Per_all_people_f To_person_id from PO and Person from hr table but i cant able to join this table with other tables INV_MIN_MAX_TEMP
regards
SrikkanthHi;
Please check e-trm site for table relation,integration,explanation etc..
etrm.oracle.com/
Regard
Helios -
Hi, could someone tell me how to find the relation between PAY_ELEMENT_TYPES_F and GL_CODE_COMBINATION tables
that is because as you could know PAY_ELEMENT_TYPES_F holds the definitions of elements in Oracle HRMS and i need to find the accounting code of each element.
ThanksHi;
Please check e-trm site for table relation,integration,explanation etc..
etrm.oracle.com/
Regard
Helios -
How to find out difference between IAS Oracle Home patches and 10.1.2 Oracl
How to find out difference between IAS Oracle Home patches and 10.1.2 Oracle Home patches.
I have read me document but i could not able to understand.
Please help meuser10721329 wrote:
How to find out difference between IAS Oracle Home patches and 10.1.2 Oracle Home patches.
I have read me document but i could not able to understand.
Please help meWhat docoument you are referring to?
If you source the application env file APPS<CONTEXT_NAME>.env file under $APPL_TOP directory then this will set ORACLE_HOME to 10.1.2
If you source the application env file <CONTEXT_NAME>.env file under $INST_TOP/ora/10.1.3 directory then this will set ORACLE_HOME to 10.1.3
Environment Settings
http://docs.oracle.com/cd/E18727_01/doc.121/e12841/T120505T120509.htm#F_92659x3Ax20H1x20Head1x3Ax20Environmentx20Settings
Thanks,
Hussein -
hello everyone,
i'm rai from indonesia
I have a final project about pulse oximetriy, I have some problems,
how to calculate the ratio between the maximum and minimum peaks of the two waves using two while loops to calculate SpO2 ?
My program image can be seen below predicament ?
Attachments:
spo2 akusisi data with filter lpf hpf smoot nilai max min ir merah.vi 249 KB
spo2 akusisi data with filter lpf hpf smoot nilai max min ir merah.vi 249 KBHi rai,
I would appreciate it as kind of respect for forum participants if you would clean up your VI before uploading it (or images of its block diagram)…
That being said:
- Your inner while loops each run exactly twice. Replace them with FOR loops!
- Lots of unneeded operations, mainly induced by ExpressVI usage. Is there a reason to convert to DDT and immediately convert back to 1D array?
- You already calculate some Min/Max values. Ratio is just a division of two values…
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome
Maybe you are looking for
-
It seems whenever I use YouTube with Firefox, the YouTube video will only ever let me interact with it unless I go full screen then hit escape. if i don't, I can't type in the text box below the video. even stranger, if I go to a new tab and try to e
-
How to set Dropdown list in tablen whith others Dropdown values in each row
how to set Dropdown list in tablen whith others Dropdown values in each row of the table
-
CS6 not closing files out properly?
I have a 2009 15" MacBook Pro (version 10.9.5) that I take to work each day for my job. At work, we are connected to a 2012 server via an ethernet cable. I have issues overwriting files I'm currently working on (from Illustrator OR Photoshop, both C
-
How does Transport works in Netweaver enterprise portal in 3 system landscape regards
-
Can someone help me reboot my IPhone 3G?