Area Chart
An Area chart shows the data as continuous lines that pass through points defined by their items' values. The portion of the graph beneath the lines is filled with a particular color for every series. Colors in an Area chart can be useful for emphasizing changes in values from several sets of similar data. A colored background will clearly visualize the differences.
An Area chart emphasizes the volume of money, data or any other unit that the given series has encompassed. When backgrounds are semi-transparent, it lets the user clearly see where different sets of data overlap.
Area series in a stock chart. Results from the first code snippet below.
This article assumes you are familiar with the stock chart basics and data binding.
To add a Area chart to a stock chart component:
- add a
StockChartSeriesto theStockChartSeriesItemscollection - set its
Typeproperty toChartSeriesType.Area - provide a data collection to its
Dataproperty - set the
FieldandCategoryFieldproperties to the corresponding fields in the model that carry the values.
An area chart that shows product revenues
Area Chart Specific Appearance Settings
Color
The color of a series is controlled through the Color property that can take any valid CSS color (for example, #abcdef, #f00, or blue). The Color controls the fill color of the area.
Change the rendering Step and Color of the Category Axis Labels