PRODUCTS
Mathematica
Mathematica Home Edition
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
Wolfram Lightweight Grid Manager
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
SOLUTIONS
Engineering
Aerospace Engineering & Defense
Chemical Engineering
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
Higher Education
Precollege Education
Students
Technology
Interactive Deployment
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
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Learning Center
Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Wolfram|Alpha
Demonstrations Project
Wolfram Blog
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Visualization and Graphics
>
Charting and Information Visualization
>
Chart Labeling, Legending & Annotation
>
Mathematica
>
Visualization and Graphics
>
Data Visualization
>
Charting and Information Visualization
>
Chart Labeling, Legending & Annotation
>
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
->{
leg
1
,
leg
2
,
...
}
uses
leg
i
as a legend label for the
i
element in each dataset.
The
leg
i
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
lab
i
specified, the subsequent
leg
i
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
leg
i
at the position specified by
pos
.
ChartLegends
->{
spec
1
,
spec
2
,
...
}
uses the successive
spec
i
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:
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