StackedDateListPlot
StackedDateListPlot [{{date1,y1},{date2,y2},…}]
plots points with values yi at a sequence of dates.
StackedDateListPlot [{y1,y2,…},datespec]
plots points with dates at equal intervals specified by datespec.
StackedDateListPlot [tseries]
plots the time series tseries.
StackedDateListPlot [{data1,data2,…}]
plots data from all the datai.
StackedDateListPlot [{…,w[datai],…}]
plots datai with features defined by the symbolic wrapper w.
Details and Options
- Possible forms of datei include:
-
"string" DateString specification{y},{y,m},{y,m,d},… shortened date listt absolute time given as a single number
- In shortened date lists, omitted elements are taken to have default values {y,1,1,0,0,0}.
- Possible forms of datespec include:
-
{start,end} dates from start to end in equal incrementsstart dates with increments determined by the form of start
- The Δt in datespec can be a {y,m,d,h,m,s} date list specification or any of the special forms "Year", "Quarter", "Month", "Week", "Day", "Hour", "Minute", "Second" and "Millisecond".
- If no explicit Δt is given, the increments used will be the smallest time unit specified explicitly in start.
- Data values yi can be given in the following forms:
-
yi a real-valued number
- Values yi that are not of the preceding form are taken to be missing and are not shown.
- The datai have the following forms and interpretations:
-
<|"k1"y1,"k2"y2,…|> values {y1,y2,…}<|date1y1,date2y2,…|> key-value pairs {{date1,y1},{date2,y2},…}QuantityArray magnitudesWeightedData unweighted values
- StackedDateListPlot [Tabular […]cspec] extracts and plots values from the tabular object using the column specification cspec.
- The following forms of column specifications cspec are allowed for plotting tabular data:
-
{colx,coly} plot column y against column x{{colx1,coly1},{colx2,coly2},…} plot column y1 agains column x1, y2 against x2, …coly, {coly} plot column y as a sequence of values{{coly1},…,{colyi},…} plot columns y1, y2, … as sequences of values
- The colx can also be Automatic , in which case sequential values are generated using DataRange .
- The following wrappers w can be used for the datai:
- Wrappers w can be applied at multiple levels:
-
{…,w[yi],…} wrap the value yi in a list{…,w[{datei,yi}],…} wrap the point {datei,yi}w[datai] wrap the data dataiw[{data1,…}] wrap a collection of dataw1[w2[…]] use nested wrappers
- In StackedDateListPlot , Labeled and Placed allow the following positions:
-
Automatic automatically placed labelsdate near the data at date{pos,epos} epos in label placed at relative position pos of the data
- StackedDateListPlot has the same options as Graphics , with the following additions and changes: [List of all options]
- DataRange determines how values {y1,…,yn} are interpreted into {{date1,y1},…,{xn,yn}}. Possible settings include:
-
{xmin,xmax} uniform from xmin to xmax
- In general, a list of pairs {{x1,y1},{x2,y2},…} is interpreted as a list of points, but the setting DataRange All forces it to be interpreted as multiple data {{y11,y12},{y21,y23},…}.
- The following settings for PlotLayout can be used to display multiple sets of data:
-
"Stacked" accumulate the data per axis"Percentile" accumulate and normalize the data per axis
- Typical settings for PlotLegends include:
-
None no legendAutomatic automatically determine legend{lbl1,lbl2,…} use lbl1, lbl2, … as legend labels
- Possible highlighting effects for Highlighted and PlotHighlighting include:
-
style highlight the indicated curve"Ball" highlight and label the indicated point in a curve"Dropline" highlight and label the indicated point in a curve with droplines to the axes"XSlice" highlight and label all points along a vertical slice"YSlice" highlight and labels all points along a horizontal slice
- Highlight position specifications pos include:
-
x,{x} effect at {x,y} with y chosen automatically{x,y} effect at {x,y}{pos1,pos2,…} multiple positions posi
- ScalingFunctions->"scale" scales the coordinate; ScalingFunctions {"scalex","scaley"} scales both the and coordinates.
- All explicit coordinates in Prolog , Epilog , Ticks , etc. are taken to be dates.
-
ImageMargins 0. the margins to leave around the graphicPlotLayout "Stacked" how to position dataPreserveImageOptions Automatic whether to preserve image options when displaying new versions of the same graphic
List of all options
Examples
open allclose allBasic Examples (4)
Plot data with explicit date values:
Plot monthly values, starting in August 2016:
Plot multiple time series with a legend:
Add labels for the data:
Scope (39)
Data (9)
Plot time series of populations:
Dates given as AbsoluteTime specifications:
Dates given as DateString specifications:
Dates given as elided DateList specifications:
Plot a series of data using an initial starting date or time:
Plot data spaced equally in time between a starting and ending date:
Plot data gathered every 90 days, starting on January 1, 2006:
Plot data gathered on the 15^(th) day of each month, starting in January:
Dates determined by an ending date and a step:
Use ScalingFunctions to scale the axes:
Special Data (5)
Use Quantity to include units with the data:
Plot data in a QuantityArray :
Specify the units used with TargetUnits :
Plot TimeSeries directly:
Numeric values in an Association are used as the coordinates:
Numeric keys and values in an Association are used as the and coordinates:
Plot data with uncertainty:
Use intervals:
Tabular Data (1)
Get tabular data for historical populations of several countries:
Plot the total populations of France, UK and Japan from 1940 to 2020:
Show the populations as percentages of the total:
Include legends for the plot, using the column names:
Wrappers (8)
Use wrappers on individual data, datasets or collections of datasets:
Wrappers can be nested:
Use the value of each point as a tooltip:
Use a specific label for all the points:
Use PopupWindow to provide additional drilldown information:
Button can be used to trigger any action:
Use Annotation for dynamic action when the mouse enters the plot:
Use Hyperlink to jump to the specified link when clicked:
Use StatusArea to display a string in the status area of the current notebook:
Labeling and Legending (11)
Label data with Labeled :
Label points with automatically positioned text:
Place the labels relative to the points:
Label data with PlotLabels :
Include legends for each curve:
Use callouts to label curves:
Specify the maximum size of labels:
Use the full label:
For dense sets of points, some labels may be turned into tooltips by default:
Increasing the size of the plot will show more labels:
Use Legended to provide a legend for a specific dataset:
Use Placed to change the legend location:
Use Association keys as labels:
Plots usually have interactive callouts showing the coordinates when you mouse over them:
Including specific wrappers or interactions, such as tooltips, turns off the interactive features:
Choose from multiple interactive highlighting effects:
Presentation (5)
Multiple curves are automatically colored to be distinct:
Provide explicit styling to different curves:
Include legends for each dataset:
Use a theme with detailed ticks and grid lines:
Use a more stylized theme:
Use shapes to distinguish different datasets:
Options (48)
DateFunction (2)
Prepend a year to create dates from {month,day} lists:
Define functions for interpreting ambiguous date strings:
DateTicksFormat (1)
Specify the format of date ticks as DateString elements:
Epilog (1)
Place text using a shortened DateList as the coordinate:
Filling (1)
Fill from data points to the bottom:
FrameTicks (2)
Give explicit dates for horizontal ticks:
Use different date specifications:
Include a specific tick label, length and style:
GridLines (1)
Include grid lines at specific dates:
Make the first grid line Blue :
IntervalMarkers (3)
By default, uncertainties are capped:
Use bars to denote uncertainties without caps:
Use bands to represent uncertainties:
IntervalMarkersStyle (2)
Uncertainties automatically inherit the plot style:
Specify the style for uncertainties:
Joined (2)
Plot data with points joined by a line:
Plot multiple datasets with points joined:
Only join points for the first dataset:
LabelingFunction (3)
By default, points are automatically labeled with strings:
Use LabelingFunction->None to suppress the labels:
Put the labels above the points:
Put them in a tooltip:
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:
PlotHighlighting (8)
Plots have interactive coordinate callouts with the default setting PlotHighlighting Automatic :
Use PlotHighlighting None to disable the highlighting for the entire plot:
Move the mouse over the points to highlight them with balls and labels:
Move the mouse over the curve to highlight it with a label and droplines to the axes:
Move the mouse over the plot to highlight it with a slice showing values corresponding to the date position:
Move the mouse over the plot to highlight it with a slice showing date values corresponding to the position:
Use a component that shows the points on the plot closest to the position of the mouse cursor:
Specify the style for the points:
Use a component that shows the coordinates on the points closest to the mouse cursor:
Use Callout options to change the appearance of the label:
Combine components to create a custom effect:
PlotLabel (1)
Add an overall label to the plot:
PlotLabels (4)
Specify text to label curves:
Place the label above the data:
Place the label below the data at a specific date:
Use a callout to label the curve:
PlotLabel Automatic uses keys of an Association as data labels:
Use None to not add a label:
PlotLayout (1)
Multiple sets are stacked by default:
Normalize the data to be percentages of the total:
PlotLegends (6)
PlotLegends matches up styles in the plot:
PlotLegends matches up markers in the plot:
Use a list of legend labels:
Use MetaInformation from a TimeSeries :
See the available MetaInformation :
The metal list can be extracted directly:
Visualize the data:
Use Placed to specify legend placement:
Use PointLegend to change legend appearance:
PlotRange (1)
Restrict the range of dates over which to plot:
PlotTheme (2)
Change the theme of the plot:
Change the color scheme:
Prolog (1)
Place text using a shortened DateList as the coordinate:
ScalingFunctions (1)
By default, plots have linear scales in each direction:
Use a log scale in the direction:
Use a linear scale in the direction that shows smaller numbers at the top:
Use a reciprocal scale in the direction:
Use a scale defined by a function and its inverse:
Positions in FrameTicks and GridLines are automatically scaled:
PlotRange is automatically scaled:
TargetUnits (1)
Units are automatically extracted from the data:
Specify the units to use:
Applications (2)
Get stock price data:
A sample data point:
Plot data gathered at regular intervals and stored without explicit dates:
Modify the ticks:
Properties & Relations (2)
Date coordinates are plotted as absolute times:
A ListPlot using the AbsoluteTime values:
DateListLogPlot plots date‐based data on a logarithmic scale:
Related Guides
Text
Wolfram Research (2017), StackedDateListPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/StackedDateListPlot.html (updated 2025).
CMS
Wolfram Language. 2017. "StackedDateListPlot." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/StackedDateListPlot.html.
APA
Wolfram Language. (2017). StackedDateListPlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StackedDateListPlot.html
BibTeX
@misc{reference.wolfram_2025_stackeddatelistplot, author="Wolfram Research", title="{StackedDateListPlot}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/StackedDateListPlot.html}", note=[Accessed: 10-April-2025 ]}
BibLaTeX
@online{reference.wolfram_2025_stackeddatelistplot, organization={Wolfram Research}, title={StackedDateListPlot}, year={2025}, url={https://reference.wolfram.com/language/ref/StackedDateListPlot.html}, note=[Accessed: 10-April-2025 ]}