FlexChart > Working with FlexChart > FlexChart Elements > Series > Emphasizing Different Types of Data |
In a chart, there is often a common but crucial requirement to emphasize different types of data. Emphasizing or distinguishing different types of data is vital because chart data that is distinguishable is easier to interpret and understand.
FlexChart caters to this requirement by allowing you to combine two or more chart types in a single chart. For instance, you can combine the LineSymbols Chart with the Column Chart to make the chart data easier to interpret. You can use the ChartType property to specify the chart type at the series level for each series, thereby creating charts with multiple chart types.
The following code combines two chart types in a single chart.
' create series Dim series1 As New C1.Win.Chart.Series() Dim series2 As New C1.Win.Chart.Series() ' add the series FlexChart1.Series.Add(series1) FlexChart1.Series.Add(series2)
// specify chart type for each series
series1.ChartType = C1.Chart.ChartType.LineSymbols;
series2.ChartType = C1.Chart.ChartType.Column;
With each series representing its own chart type, you can easily identify the data represented by a particular series.
Nevertheless, just combining multiple chart types in a single chart doesn't suffice when data to be plotted requires different units or scales. In such a case, you require plotting different data on different axes to emphasize their types. FlexChart fulfils this requirement as well by letting you work with multiple axes seamlessly.
For information on how to create and use multiple axes in FlexChart, refer to Multiple Axes.