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:

Show multiple sets as a row of sector charts:

Use categorical labels:

Categorical legends:

Set the style for sectors:

Scope  (38)

Data and Layouts  (13)

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:

Use a row of sector charts:

Use a column of sector charts:

Multiple rows or columns:

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  (56)

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  (4)

ChartLayout is grouped by default in concentric rings:

Use stacked sectors:

The stacked layout can display many datasets:

Place each of the sectors in a separate panel using shared scales:

Use a row instead of a column:

Use multiple columns or rows:

Prefer full columns or rows:

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:

ImageSize  (7)

Use named sizes, such as Tiny, Small, Medium and Large:

Specify the width of the plot:

Specify the height of the plot:

Allow the width and height to be up to a certain size:

Specify the width and height for a graphic, padding with space if necessary:

Use maximum sizes for the width and height:

Use ImageSizeFull to fill the available space in an object:

Specify the image size as a fraction of the available space:

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  (3)

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:

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:

Wolfram Research (2008), SectorChart, Wolfram Language function, https://reference.wolfram.com/language/ref/SectorChart.html (updated 2021).

Text

Wolfram Research (2008), SectorChart, Wolfram Language function, https://reference.wolfram.com/language/ref/SectorChart.html (updated 2021).

CMS

Wolfram Language. 2008. "SectorChart." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/SectorChart.html.

APA

Wolfram Language. (2008). SectorChart. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SectorChart.html

BibTeX

@misc{reference.wolfram_2024_sectorchart, author="Wolfram Research", title="{SectorChart}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/SectorChart.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_sectorchart, organization={Wolfram Research}, title={SectorChart}, year={2021}, url={https://reference.wolfram.com/language/ref/SectorChart.html}, note=[Accessed: 21-December-2024 ]}