03-03-2005 06:20 PM
03-03-2005 06:32 PM
private string ConvertDateTimeMinimumToString()
{
DateTime minimum = yaxis.Range.MinimumDateTime;
return minimum.ToString(yaxis.MajorDivisions.LabelFormat.Format);
}
03-03-2005 06:38 PM - edited 03-03-2005 06:38 PM
Message Edited by scottyoo on 03-03-2005 06:40 PM
03-03-2005 07:14 PM
private void OnPlotAreaMouseMove(object sender, MouseEventArgs e)
{
double xData, yData;
XYPlot plot = scatterGraph1.GetPlotAt(e.X, e.Y, out xData, out yData);
if (plot == null)
label1.Text = String.Empty;
else
label1.Text = yAxis1.MajorDivisions.LabelFormat.FormatDouble(yData);
}
private void OnPlotAreaMouseMove(object sender, MouseEventArgs e)
{
Rectangle bounds = scatterGraph1.PlotAreaBounds;
float factor = ((float)(bounds.Bottom - e.Y)) / ((float)(bounds.Bottom - bounds.Top));
Range range = yAxis1.Range;
double yValue = (range.Interval * factor) + range.Minimum;
label1.Text = yAxis1.MajorDivisions.LabelFormat.FormatDouble(yValue);
}
03-03-2005 07:27 PM
03-03-2005 07:34 PM
03-08-2005 03:58 AM
03-08-2005 01:24 PM