Xmaker Posted May 24, 2007 Report Share Posted May 24, 2007 I'm developing S/W by ChartFX's Curve Line. I want to get x point like under attached Image. ** I must find x value contact of y value ( y == 0 ). But, ChartFX alredy known x value (x = 2.2) like attached Image. How to get or use x value ? It is possible? Thank you. Quote Link to comment Share on other sites More sharing options...
Frank Posted May 24, 2007 Report Share Posted May 24, 2007 Sorry, I don't understand what X-Value you are talking about. Quote Link to comment Share on other sites More sharing options...
Xmaker Posted May 24, 2007 Author Report Share Posted May 24, 2007 Sorry, I can't english very well. ex) I have 4 Point Data [Points] X1 = 1, Y1 = -5 X2 = 2, Y2 = 10 X3 = 3, Y3 = 20 X4 = 4, Y4 = 21 This poins shown by ChartFX Curve Graph. but, I can't find any X Position when Y Position is 0. Of curse, Needs any spline algorithm . But, I found X Position when Mouse move on X Axis of ChartFX. I think easily use ChartFX's Internal Data than any spline algorithm. I have a sample source. Do you want a sample source?? Thank you. Quote Link to comment Share on other sites More sharing options...
Frank Posted May 29, 2007 Report Share Posted May 29, 2007 We use .NET's Graphics.DrawCurve to draw this curve. We do not have a public API that will return you the corresponding Y for a given x in this curve. I guess you can google the formula they use and obtain it this way. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.