PRODUCTS
Products Overview
Mathematica
Mathematica for Students
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
SUPPORT
Support Overview
Knowledge Base
Learning Center
Community & Forums
Training & Free Seminars
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Visualization and Graphics
>
Charting and Information Visualization
>
Chart Labeling, Legending & Annotation
>
ChartLegends
>
Mathematica
>
Visualization and Graphics
>
Data Visualization
>
Charting and Information Visualization
>
Chart Labeling, Legending & Annotation
>
ChartLegends
>
Mathematica
>
Data Manipulation
>
Statistical Data Analysis
>
Statistical Visualization
>
Charting and Information Visualization
>
Chart Labeling, Legending & Annotation
>
ChartLegends
>
BUILT-IN MATHEMATICA SYMBOL
ChartStyle
ChartLabels
LabelingFunction
Labeled
BarChart
PieChart
BubbleChart
See Also »
|
Charting and Information Visualization
Chart Labeling, Legending & Annotation
Chart Styling & Layout
Summary of New Features in 7.0
New in 7.0: Alphabetical Listing
More About »
ChartLegends
ChartLegends
is an option for charting functions that specifies what legends should be used for chart elements.
MORE INFORMATION
ChartLegends
uses
as a legend label for the
i
element in each dataset.
The
can be any strings, graphics, or other static or dynamic expressions.
Any legend labels that are specified are collected in a legend that is displayed as part of the chart.
The overall form and appearance of legends is specified by settings for
LegendAppearance
.
None
indicates no legend label. If there are more elements in a dataset than
specified, the subsequent
are taken to be
None
.
If explicit legending is specified in a dataset using
Legended
, it is added to legends specified through
ChartLegends
.
Positioning of legends and other effects can be specified using
Placed
.
ChartLegends
->
Placed
[{
leg
1
,
leg
2
,
...
},
pos
]
places the legend containing the
at the position specified by
pos
.
ChartLegends
uses the successive
to specify legend labels for successive dimensions in nested lists of datasets.
EXAMPLES
CLOSE ALL
Basic Examples
(3)
Generate a legend based on chart style:
Generate a legend for datasets:
Unused legend labels are dropped:
Generate a legend based on chart style:
In[1]:=
Out[1]=
Generate a legend for datasets:
In[1]:=
Out[1]=
Unused legend labels are dropped:
In[1]:=
Out[1]=
SEE ALSO
ChartStyle
ChartLabels
LabelingFunction
Labeled
BarChart
PieChart
BubbleChart
MORE ABOUT
Charting and Information Visualization
Chart Labeling, Legending & Annotation
Chart Styling & Layout
Summary of New Features in 7.0
New in 7.0: Alphabetical Listing
New in 7