Plotting Chart Data Point By Point
The most straightforward way to get your data onto a chart is to specify the data point by point. Each series in a chart has a Points collection that specifies the data points to plot for that series. As we saw in the previous installment, the Points collection data may be specified statically via the section in the Chart Web control's declarative markup. The values for this collection can also be defined programmatically via the Points collection's AddXY method.
The following example shows how to specify chart data point by point by displaying a chart that shows the total number of sales per day of week for a fictional online retailer. (The complete code for this example, as well as all of the other demos in this article series, are available for download at the end of this article.) The data is shown in a three-dimensional area chart using the Earth Tones palette. This information - the chart type, the instructions to render the chart as a 3D chart, and the palette choice - are all configured in the Chart control's declaratively syntax:
View Full Details...............................
No comments:
Post a Comment