Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Statistics[LineChart] - generate line charts
Calling Sequence
LineChart(X, options, plotoptions)
LineChart['interactive'](X)
Parameters
X
-
data
options
(optional) equation(s) of the form option=value where option is one of color, format, orientation, scale, or xcoords; specify options for generating the line chart
plotoptions
options to be passed to the plots[display] command
Description
The LineChart command generates a line chart for the specified data. Several formats are available for multiple data sets: default, stacked and percent stacked. See format option below for more information.
The first parameter X is either a single data sample - given as a Vector or list - or a list of data samples. Note, that the individual samples may be of variable size.
Options
The options argument can contain one or more of the options shown below. All unrecognized options will be passed to the plots[display] command. See plot[options] for details.
color=name, list, or range
This option specifies colors for the individual data sets. When a list of colors is given, each of the lines will be colored with the corresponding color in the list. If a range of colors is given, the colors will be generated by selecting an appropriate number of equally-spaced points in the corresponding hue range.
format=default or stacked
By default, individual data sets are displayed as separate lines in the same coordinate system. A stacked line chart shows related data groups, one on top of the other. A percent line chart is similar to a stacked line chart, except that it is rescaled to a height of 1 while preserving proportionality. If scale is set to relative and format is set to stacked then a percent stacked plot will be generated.
orientation=vertical, or horizontal
This option specifies whether the vertical or the horizontal layout should be used. The default value is vertical.
scale=absolute, or relative
This option controls whether the absolute or relative data scale should be used. If scale is set to relative and format is set to default then all data samples will be rescaled so that their range belongs to an interval between -1 and 1. If scale is set to relative and format is set to stacked then a percent stacked plot will be generated.
xcoords=default or list
This option specifies the x-coordinates of the data points. By default, the x-coordinates of the points are 1, 2, 3, etc.
Examples
The command to create the plot from the Plotting Guide using the data above is
Other examples:
See Also
Statistics, Statistics[AreaChart], Statistics[ErrorPlot], Statistics[Visualization]
Download Help Document