The ActiveReports Chart control can draw a number of XY chart types:
- Bubble, Bubble XY
- Line XY
- Plot XY
See below for details on each of the XY chart types.
Bubble Chart
The Bubble chart is an XY chart in which bubbles represent data points. The first Y value is used to plot the bubble along the Y axis, and the second Y value is used to set the size of the bubble. The bubble shape can be changed using the series Shape property.
|
| |
|---|---|
| Number of Y values per data point | 2 |
| Number of Series | 1 or more |
| Marker Support | Series or Data Point. Marker labels use the second Y value as the default value. |
| Custom Properties | MaxSizeFactor gets or sets the maximum size of the bubble radius. Values must be less than or equal to 1. Default is .25. MaxValue gets or sets the bubble size that is used as the maximum. MinValue gets or sets the bubble size that is used as the minimum. Shape gets or sets the shape of the bubbles. Uses or returns a valid MarkerStyle enumeration value. |
Below is an example of setting the custom chart properties at run time for a bubble chart as shown in the image above.
To write the code in Visual Basic.NET
| Visual Basic.NET code. Paste INSIDE the section Format event. | Copy Code |
|---|---|
Me.ChartControl1.Series(0).Properties("MaxSizeFactor") = 0.25F
Me.ChartControl1.Series(0).Properties("MaxValue") = 55.0R
Me.ChartControl1.Series(0).Properties("MinValue") = 5.0R
Me.ChartControl1.Series(0).Properties("Shape") = MarkerStyle.Circle
| |
| C# code. Paste INSIDE the section Format event. | Copy Code |
|---|---|
this.chartControl1.Series[0].Properties["MaxSizeFactor"] = .25f; this.chartControl1.Series[0].Properties["MaxValue"] = 55D; this.chartControl1.Series[0].Properties["MinValue"] = 5D; this.chartControl1.Series[0].Properties["Shape"] = MarkerStyle.Circle; | |
Bubble XY Chart
The Bubble XY chart is an XY chart in which bubbles represent data points. The BubbleXY uses a numerical X axis and plots the x values and first set of Y values on the chart. The second Y value is used to set the size of the bubble.
|
| |
|---|---|
| Number of Y values per data point | 2 |
| Number of Series | 1 or more |
| Marker Support | Series or Data Point. Marker labels use the second Y value as the default value. |
| Custom Properties | MaxSizeFactor gets or sets the maximum size of the bubble radius. Values must be less than or equal to 1. Default is .25. MaxValue gets or sets the bubble size that is used as the maximum. MinValue gets or sets the bubble size that is used as the minimum. Shape gets or sets the shape of the bubbles. Uses or returns a valid MarkerStyle enumeration value. |
Below is an example of setting the custom chart properties at run time for a bubble XY chart as shown in the image above.
To write the code in Visual Basic.NET
| Visual Basic.NET code. Paste INSIDE the section Format event. | Copy Code |
|---|---|
Me.ChartControl1.Series(0).Properties("MaxSizeFactor") = 0.25F
Me.ChartControl1.Series(0).Properties("MaxValue") = 50.0R
Me.ChartControl1.Series(0).Properties("MinValue") = 0.0R
Me.ChartControl1.Series(0).Properties("Shape") = MarkerStyle.InvTriangle
| |
| C# code. Paste INSIDE the section Format event. | Copy Code |
|---|---|
this.chartControl1.Series[0].Properties["MaxSizeFactor"] = .25f; this.chartControl1.Series[0].Properties["MinValue"] = 0D; this.chartControl1.Series[0].Properties["MaxValue"] = 50D; this.chartControl1.Series[0].Properties["Shape"] = MarkerStyle.InvTriangle; | |
Line XY Chart
A line XY chart plots points on the X and Y axes as one series and uses a line to connect points to each other.
|
| |
|---|---|
| Number of Y values per data point | 1 |
| Number of Series | 1 or more |
| Marker Support | Series or Data Point |
| Custom Properties | None |
Plot XY Chart
A plot XY chart shows the relationships between numeric values in two or more series sets of XY values.
|
| |
|---|---|
| Number of Y values per data point | 1 |
| Number of Series | 1 or more |
| Marker Support | Series or Data Point |
| Custom Properties | None |
How To
Create Charts
Hide All