Skip to content

ChartRadarLineSeriesStyle Object

Description

Radar/Polar Line Style.

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

Object Model

Object Model
Error Bar
Get Rotation
Label
Marker
Line Style

Remarks

Radar/Polar charts can use several different styles including Area, Spline Area, Line, Line Area, and Point. Furthermore, they can be displayed as a circle diagram or "spider" diagram (straight lines).

Note: To make a "closed" loop, the last data point must be the same as the first.

Radar Chart

Radar charts are basically another form of a line chart, represented as radar. Data is drawn as a line around the center of the radar. Radar charts use "poles" to display data. Each data point gets displayed on one of these poles radiating from the center. For each unique data point in the series, a new pole will be added. The poles will be drawn in a 360-degree circle with each pole evenly spaced. The Y-Axis is used to plot data on the poles while the X-Axis is only used for labeling the poles. Data is plotted as (label, y), where "label" is the label for the pole and "y" is the distance from the center of the circle.

Radar charts are typically used to compare data for a set of categories. They make it easy to compare relative values for a single data point and find similar or dissimilar points. Radar charts are best suited for showing commonality and outliers (e.g., you can see certain car models tend to be more expensive with poor gas mileage). Typical uses for a radar chart include:

  • Categories of data that occur in cycles (like nature, months of the year)
  • Comparing differences between actual/measured and ideal/estimated data (e.g., estimated vs actual sales, sales by department, team performance, quality control)
  • Comparing strengths and weaknesses (e.g., sports, department analysis)

Polar Chart

Polar charts use polar coordinates to plot data. The X-Axis is a circle, and the values are normally fixed in degrees (0-360) or radians typical of polar charts, but the chart will allow you to set any desired range. Data is plotted in terms of values and angles, where "x" is the angle/rotation and "y" is the distance from the center of the circle.

Polar charts are best suited for plotting polar data. Plotting mathematical functions is a common use for a polar chart. Any type of data represented by an angle and distance would be ideal. For some data, it is useful to use the poles as a compass (North, South, East, West, etc.) and plot data relative to these directions (e.g., the location of houses can be plotted relative to the specified origin).

Area Style

Area Style

Line Style

Line Style

Spline and Spline Area Styles

Spline Style

Point Style

Point Style

Example

'Radar/Polar Line Style

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

ChartControl.Content.Titles.Add "Vehicle Sales by Color"  

Dim Series As ChartSeries  
Set Series = ChartControl.Content.Series.Add("North America")  

Series.Points.Add "Silver", 0.18  
Series.Points.Add "White", 0.17  
Series.Points.Add "Gray", 0.15  
Series.Points.Add "Blue", 0.12  
Series.Points.Add "Black", 0.11  
Series.Points.Add "Red", 0.11  
Series.Points.Add "Silver", 0.18  

Dim Style As ChartRadarLineSeriesStyle  
Set Style = New ChartRadarLineSeriesStyle  

Set Series.Style = Style  
Style.Label.Visible = False  
Style.Marker.Visible = False  

Set Series = ChartControl.Content.Series.Add("Europe")  

Series.Points.Add "Silver", 0.29  
Series.Points.Add "White", 0.06  
Series.Points.Add "Gray", 0.16  
Series.Points.Add "Blue", 0.15  
Series.Points.Add "Black", 0.21  
Series.Points.Add "Red", 0.05  
Series.Points.Add "Silver", 0.29  

Set Series.Style = Style  

Dim Diagram As ChartRadarDiagram  
Set Diagram = ChartControl.Content.Diagrams(0)  

Diagram.AxisY.Range.MaxValue = 0.35  
Diagram.AxisY.Range.MinValue = 0  
Diagram.AxisY.Range.AutoRange = False  
Diagram.AxisY.Label.Format.Category = xtpChartPercentage  
Diagram.AxisY.Label.Format.DecimalPlaces = 0  

Diagram.AxisX.Interlaced = False  
Diagram.AxisY.Interlaced = False  

'Diagram.AxisY.GridLines.Visible = False  
Diagram.AxisX.TickMarks.MinorVisible = False  

Diagram.Style = xtpChartRadarDiagramPolygon

See Also

ChartRadarLineSeriesStyle Members


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