If you were superimposing data ranges on the
chart (as shown later in Figure 10-15), you would give them their distinct names here.
The second parameter is the PointPairList. The third is the color for this range, which in
this case is Color.SlateBlue, and the final parameter is the SymbolType used to indicate a
point on the line. If you refer to Figure 10-14, you??™ll see that some points are indicated
with triangles or diamonds. You specify these here. Because the graph has a lot of points
that would cause it to look cluttered, you won??™t use a symbol type for this example.
LineItem priceCurve =
pane.AddCurve("Closing Price", pt,
Color.SlateBlue, SymbolType.None);
Next, set the line width to 2 pixels to make the chart stand out a little more clearly,
and fill the background for the pane with a graded fill between white and antique white:
priceCurve.Line.Width = 2.0F;
pane.AxisFill = new Fill(Color.White, Color.AntiqueWhite);
Finally, call the AxisChange event to render the graph:
pane.AxisChange(g);
CHAPTER 10 ?– BUILDING A SAMPLE APPLICATION USING ASP.
Pages:
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345