SectorChart

SectorChart[{{x1,y1},{x1,y2},}]

makes a sector chart with sector angles proportional to xi and radii yi.

SectorChart[{,wi[{xi,yi},],,wj[{xj,yj},],}]

makes a sector chart with sector features defined by the symbolic wrappers wk.

SectorChart[{data1,data2,}]

makes a sector chart from multiple datasets datai.

Details and Options

Examples

open allclose all

Basic Examples  (5)

A sector chart with the second component representing the radial size:

An annular sector chart:

Multiple datasets:

Use categorical labels:

Categorical legends:

Set the style for sectors:

Use procedural sectors:

Scope  (37)

Data and Layouts  (12)

Items in a dataset are grouped together:

Datasets do not need to have the same number of items:

Nonreal data is taken to be missing and typically is ignored in the pie chart:

The data may include units:

The time stamps in TimeSeries, EventSeries, and TemporalData are ignored:

The values in associations are taken as the values of the sectors:

Use the keys as labels:

Use the keys as callouts:

Use the keys as legends:

Associations can be nested:

The weights in WeightedData are ignored:

Use different layouts to display multiple datasets:

Control the direction of sectors:

Control the starting angle of sectors:

Control the starting radius of sectors:

Adjust the spacing between sectors and groups of sectors:

Wrappers  (4)

Use wrappers on individual data, datasets, or collections of datasets:

Wrappers can be nested:

Override the default tooltips:

Use any object in the tooltip:

Use PopupWindow to provide additional dropdown information:

Button can be used to trigger any action:

Styling and Appearance  (9)

Use an explicit list of styles for the sectors:

Use any gradient or indexed color schemes from ColorData:

Use color schemes designed for charting:

Use themes to control the overall appearance:

ChartBaseStyle can be used to set an initial style for all chart elements:

Style can be used to override styles:

Use built-in programmatically generated sectors:

For detailed settings, use Palettes ChartElementSchemes:

Use a theme with dark background and bezel sectors:

Use a monochrome theme:

Labeling and Legending  (12)

Use Labeled to add a label to a sector:

Use symbolic positions for label placement:

Provide categorical labels for the columns of data:

For rows of data:

For both:

Use Placed to control the positioning of labels, using the same positions as for Labeled:

Use Callout to add a label to a sector:

Change the appearance of the callout:

Automatically position callouts:

Provide value labels for sectors by using LabelingFunction:

Generate callouts from the data:

Add categorical legend entries for the columns of data:

For rows of data:

Use Legended to add additional legend entries:

Use Placed to affect the positioning of legends:

Options  (81)

ChartBaseStyle  (5)

Use ChartBaseStyle to style all sectors:

ChartBaseStyle combines with ChartStyle:

ChartStyle may override settings for ChartBaseStyle:

ChartBaseStyle combines with Style:

Style may override settings for ChartBaseStyle:

ChartBaseStyle combines with ColorFunction:

ColorFunction may override settings for ChartBaseStyle:

ChartElementFunction  (5)

Get a list of built-in settings for ChartElementFunction:

For detailed settings, use Palettes ChartElementSchemes:

Use ChartElementData to specify the same chart element rendering function as above:

Write a custom ChartElementFunction:

Use metadata passed on from the input, in this case charting the data:

ChartLabels  (8)

By default, labels are placed in the center:

Labeled wrappers in data will place additional labels:

Use Placed to control label placement:

Positions outside the sector:

Callout positions:

Coordinate-based placement relative to a sector:

Place all labels at the first outer corner and vary the coordinates within the label:

Use the third argument to Placed to control formatting:

Use a hyperlink label:

By default, labels are associated with columns of data:

Associate labels with rows or datasets:

Label both rows and columns:

Use Placed to affect placements:

Use Callout to connect the labels to the sectors:

Place multiple labels:

ChartLayout  (2)

ChartLayout is grouped by default in concentric rings:

Use stacked sectors:

The stacked layout can display many datasets:

ChartLegends  (4)

Generate a legend based on chart style:

Use Legended to add additional legend entries:

Or to specify individual legend entries:

Generate a legend for datasets:

Unused legend labels are dropped:

Legends can be applied to several dimensions:

Use Placed to control the placement of legends:

ChartStyle  (6)

Use ChartStyle to style sectors:

Give a list of styles:

Use "Gradient" colors from ColorData:

Use "Indexed" colors from ColorData:

Styles are used cyclically:

Style each column of data:

Style each row of data:

Style both rows and columns of data:

With both row and column styles the last style may override earlier ones:

Style overrides settings for ChartStyle:

ColorFunction overrides settings for ChartStyle:

ColorFunction  (4)

Color by sector angle:

Use ColorFunctionScaling->False to get unscaled angular values:

Color by area:

ColorFunction overrides styles in ChartStyle:

Use ColorFunction to combine different style effects:

ColorFunctionScaling  (2)

Use ColorFunctionScaling->False to get unscaled height values:

Color by area:

LabelingFunction  (8)

Use automatic labeling by values through Tooltip and StatusArea:

Do no labeling:

Use Placed to control label placement:

Symbolic positions outside the sector:

Positions for callout labels:

Coordinate-based placement relative to a bar:

Use Callout to place labels automatically:

Control the formatting of labels:

Use the given chart labels as arguments to the labeling function:

LabelingSize  (4)

Textual labels are shown at their actual sizes:

Image labels are automatically resized:

Specify a maximum size for textual labels:

Specify a maximum size for image labels:

Show image labels at their natural sizes:

PerformanceGoal  (3)

Generate a sector chart with interactive highlighting:

Emphasize performance by disabling interactive behaviors:

Typically less memory is required for non-interactive charts:

PolarAxes  (4)

By default, no polar axes are drawn:

Draw angular axes but no radial axes:

Draw both angular and radial axes:

PolarAxes are drawn individually for multiple datasets:

PolarAxesOrigin  (4)

Determine where the angular axes and radial axes intersect automatically:

Specify the angular axes and radial axes to intersect at :

Place radial axes to the right of the sector chart:

Place radial axes at the left of the sector chart:

Place radial axes at the top of the sector chart:

Place radial axes at the bottom of the sector chart:

Place radial axes at the top right and let angular axes be at radius 5:

PolarTicks  (6)

Place no ticks:

Determine polar ticks automatically:

Specify angular ticks to be in degrees:

Specify angular ticks to be in radians:

Specify angular ticks to be direction indicators:

Give a list of tick positions for radial axes:

PolarGridLines  (4)

Put grid lines across the polar region:

Draw grid lines at the specified positions:

Specify a grid line style:

Specify the styles for individual grid lines:

PlotTheme  (1)

Use a theme with plateau sectors in a bright color scheme:

Change the color scheme:

TicksStyle  (2)

Specify overall ticks style, including the tick labels:

Specify ticks style for each axis:

SectorOrigin  (4)

By default, sectors start on the left and add clockwise:

Generate a donut chart for a list of values:

Reverse the direction of the sectors:

Rotate the chart by :

SectorSpacing  (5)

Use automatically determined spacing between sectors:

Use no spacing:

Use symbolic presets:

Use explicit spacing between sectors:

Use explicit spacing between sectors and groups of sectors:

Applications  (7)

Generate a sector graph:

Generate a vector graph:

Generate a circular column graph:

Click on the sectors to hear the name of the country, its GDP per capita, and population:

Create a radar graph of nutritional content:

Visualizing GDP per capita:

Add a fancy Tooltip label for each sector:

Wind direction from WeatherData ranges from 0° to 360°:

Get wind direction data for Willard Airport (CMI) in Champaign, Illinois:

Remove missing data:

Define a chart element function that stores bin width and count data using Sow:

Create a histogram of the wind directions, and store the bin width and frequencies:

Create a polar histogram of the wind direction frequencies:

Properties & Relations  (4)

SectorChart is a generalization of PieChart:

Use SectorChart3D to render sectors in 3D:

Use RectangleChart to render pairs as bars:

Use ListPlot and ListLinePlot to produce line graphs from pairs of numbers:

Neat Examples  (3)

Detailed chart using ticks:

Detailed chart using grid lines:

Here is some chart work:

Introduced in 2008
 (7.0)
 |
Updated in 2012
 (9.0)
2014
 (10.0)
2017
 (11.1)
2018
 (11.3)