User (Legacy) Posted February 20, 2003 Report Share Posted February 20, 2003 Hi, Inside of the MouseMoving event, I adjust the position of a constant line. I then: ChartFX.PixelToValue CLng(x), CLng(y), xValue, yValue, AXIS_Y2 m_VertLine.Label = Format(CDate(xValue), "General Date") That label displays as some day in 1900 - nowhere near the real date! Quote Link to comment Share on other sites More sharing options...
Software FX Posted February 20, 2003 Report Share Posted February 20, 2003 Is this an X/Y chart ? is the X-Axis a Date axis or is it just labels formatted to dates, if the X-Axis is just labels (no X-Values are supplied) then the values are not dates, they are just indexes in the data array. The code you posted would work if X-Values where set to valid dates. If you don't want an X/Y chart then you must make the conversion yourself from an index (xValue) to an actual date. -- FP Software FX, Inc. 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.