Skip to content

ChartRangeSplineAreaSeriesStyle Object

Description

Range Area chart style.

For a list of all members defined in this module, see ChartRangeSplineAreaSeriesStyle Members.

Object Model

Object Model
Diagram
Error Bar
Rotation
Label
Marker
Fill Style
Border

Remarks

The Range Area chart is similar to the other Area charts except you must provide a minimum and maximum value (two y values). This can also be thought of as the start and end of a given point. This chart is useful where a range of values needs to be shown for a given point, for example, showing the range of temperature for the days of a month.

Note that the Range Area chart uses the Add2 method to add points to the series.

Example

' Range area chart sample

ChartControl.Content.Legend.Visible = True  
ChartControl.Content.Legend.HorizontalAlignment = xtpChartLegendFar  
ChartControl.Content.EnableMarkup = True  

ChartControl.Content.Titles.Add "Total Hours Worked"  
ChartControl.Content.Legend.Visible = True  
ChartControl.Content.Legend.HorizontalAlignment = xtpChartLegendFarOutside  

Dim Series As ChartSeries  
Set Series = ChartControl.Content.Series.Add("Odd Days")  

Series.Points.Add2 "Sam", 8, 14  
Series.Points.Add2 "Jesse", 9, 16  
Series.Points.Add2 "Dave", 7, 15  
Series.Points.Add2 "Max", 6, 15  
Series.Points.Add2 "Brian", 9, 17  

Set Series = ChartControl.Content.Series.Add("Even Days")  
Series.Points.Add2 "Sam", 16, 23  
Series.Points.Add2 "Jesse", 19, 21  
Series.Points.Add2 "Dave", 12, 20  
Series.Points.Add2 "Max", 17, 23  
Series.Points.Add2 "Brian", 19, 23  

Set ChartControl.Content.Series(1).Style = New ChartRangeSplineAreaSeriesStyle  
Set ChartControl.Content.Series(0).Style = New ChartRangeSplineAreaSeriesStyle  

Dim Diagram As ChartDiagram2D  
Set Diagram = ChartControl.Content.Series(0).Diagram  
Diagram.AxisY.Title.Visible = True  
Diagram.AxisY.Title.Text = "Hours"  
Diagram.AxisX.Title.Visible = True  
Diagram.AxisX.Title.Text = "Employee"  

Diagram.AxisX.Label.Angle = 360  

Diagram.AxisY.Range.SideMargins = False  
Diagram.AxisX.Range.SideMargins = False

See Also

ChartRangeSplineAreaSeriesStyle Members


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.