User (Legacy) Posted July 27, 2004 Report Posted July 27, 2004 Hi, I want to get information about the currently displayed data (after zooming or scrolling) How can I get this data? Some background information: I use the ChartFX Internet 5.5 (Build 14). I want to show a statistic about the displayed data after zoom. (e.g. "now you see 125 values") Since I don't want to go back to server, I work with Javascript. <SCRIPT LANGUAGE="JavaScript" FOR="ChartAnalyse" EVENT="LButtonUp(X , Y , nRes ) "> if(ChartAnalyse.Zoom) { // ??? how can I get the data // I can't use PixelToValue() since I have no idea how I should implement out-Parameters in Javascript } </SCRIPT> Another question: Is there an Event for Zooming? As you see I currently use LButtonUp.
Software FX Posted July 28, 2004 Report Posted July 28, 2004 This will be not possible in VB Script as VBScript does not allow for By-Ref parameters. The way you could do this in VB (or any other non-script language) is to use the GetScrollView method to figure out the current view then go through all your points and determine which are inside of this range. -- FP Software FX
User (Legacy) Posted July 29, 2004 Author Report Posted July 29, 2004 in other word: there is NO way to get the visible points in the chart (after scrolling/zooming) by using javascript or vb-script?? it is also NOT possible to get the X or Y value of the mouse after clicking (not the pixel values but the "chart-X/-Y" values)?? That's horrible "SoftwareFX Support" <noreply@softwarefx.com> schrieb im Newsbeitrag news:uOjyi$MdEHA.3080@webserver3.softwarefx.com... > This will be not possible in VB Script as VBScript does not allow for By-Ref > parameters. > > The way you could do this in VB (or any other non-script language) is to use > the GetScrollView method to figure out the current view then go through all > your points and determine which are inside of this range. > > -- > FP > Software FX > >
Software FX Posted July 29, 2004 Report Posted July 29, 2004 It is possible to get the axis position of a mouse coordinate using PixelToValue as follows: <SCRIPT LANGUAGE="JavaScript" FOR="Chart1" EVENT="MouseDown(button, clicks, hitType, x, y, nSeries, nPoint, object)"> <!-- dx = Chart1.AxisX.PixelToValue(x); dy = Chart1.AxisY.PixelToValue(y); --> </SCRIPT> The lack of support for By-Ref parameters in Java Script is certainly a pain. -- FP Software FX
User (Legacy) Posted July 30, 2004 Author Report Posted July 30, 2004 Thanks, but sorry - there is neither "MouseDown" (but LButtonDown) nor PixelToValue (at least not as a Axis-function). (I use ChartFX Internet 5.5 (Build 14).) There is PixelToValue() function which can be used directly on the chart, but it use out-Parameters (impossible in Javascript) (see below the declaration I found in the Reference API Help) ChartName.PixelToValue([in] double x, [in] double y, [out] long *xValue, [out] long *yValue,CfxAxisIndex nYAxis); What I have: I have the pixel X and Y position What I want: Get the values (especially the x-value) without using a function with out-parameters. Can you help me? Thanks a lot Berthold "SoftwareFX Support" <noreply@softwarefx.com> schrieb im Newsbeitrag news:A$9xc1XdEHA.3888@webserver3.softwarefx.com... > It is possible to get the axis position of a mouse coordinate using > PixelToValue as follows: > > <SCRIPT LANGUAGE="JavaScript" FOR="Chart1" EVENT="MouseDown(button, clicks, > hitType, x, y, nSeries, nPoint, object)"> > <!-- > dx = Chart1.AxisX.PixelToValue(x); > dy = Chart1.AxisY.PixelToValue(y); > --> > </SCRIPT> > > The lack of support for By-Ref parameters in Java Script is certainly a > pain. > > -- > FP > Software FX > >
Software FX Posted July 30, 2004 Report Posted July 30, 2004 Sorry. I incorrectly assumed you were using 6.x. My last post only applies to 6.x. The only option I see is to move to the newer version. -- FP Software FX
User (Legacy) Posted August 2, 2004 Author Report Posted August 2, 2004 Sorry, but I don't use Chart .NET I use ChartFx INTERNET 5.5. And I don't found a newer version on your website! Please look at: http://eu.softwarefx.com/SFXCOMPRODUCTS/CFXINTERNET/DEFAULT.ASPX We can't use the .NET version, since our clients has .NET not installed. Again the problem: I want to get information about the displayed data (after zooming/scrolling) within JavaScript (there are no OUT-Parameters) Really I need help. I don't found any hint in the support-page nor in the knowledge base. Thanks Berthold "SoftwareFX Support" <noreply@softwarefx.com> schrieb im Newsbeitrag news:CSS11kmdEHA.3152@webserver3.softwarefx.com... > Sorry. I incorrectly assumed you were using 6.x. > > My last post only applies to 6.x. > > The only option I see is to move to the newer version. > > -- > FP > Software FX > >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.