Jump to content
Software FX Community

Bob

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by Bob

  1. And for completness. double xValue = chart.AxisX.PixelToValue(e.X); DateTime dt = DateTime.FromOADate(xValue);
  2. Greetings, I have a line chart that has a stack of values plotted where the Y axis uses numeric values and the X axis is time ... I want my users to click anywhere on the graph and get the X axis value .. i.e. 10:45am ... I intend to use this value to comment on parts of my graph. By using the "MouseClick" event I can get the "value" property which is the opposite of what I want as it returns the Y axis value I want the X axis value . The dream being a user clicks on the graph .. and I pop up a dialog box for them to enter some text and I have the X value from the mouse click. How can I get my X axis value (and not the x and y pixel values which are useless) cheers.
×
×
  • Create New...