12-15-2004 12:28 PM
12-15-2004 01:42 PM
12-17-2004 08:58 AM
12-21-2004 04:44 PM
12-21-2004 05:35 PM
// This example assumes that you've added a ScatterGraph with two ScatterPlots
// to the form and they have their default names.
private void OnBeforeDrawPlot(object sender, BeforeDrawXYPlotEventArgs e)
{
ComponentDrawArgs args = new ComponentDrawArgs(e.Graphics, e.Bounds);
// Draw the fill (AKA area plot) first, then draw the grid lines, then
// draw the lines of the plot.
scatterPlot1.DrawFillToBase(args);
scatterGraph1.DrawGridLines(args);
scatterPlot1.DrawLines(args);
// Cancel the event since the drawing is completely handled here.
e.Cancel = true;
}