AreaChart
Creates an XY area chart.
Syntax
-
AreaChart(data)
-
data
is a sequence of (X, Y) points
-
Description
If data
is a sequence of (X, Y) points, then AreaChart(data)
creates an area chart from this data.
Technically, data
can be a plain sequence of points as function arguments, a list of points, or an n×2 real matrix in which each row represents a single point.
The chart is shown in the current diagram and a reference to the chart is returned.
AreaChart
fills the area between the implied curve and the horizontal axis. To plot a general area (such as one between two arbitrary curves), use the plot
function instead.
Examples
AreaChart(❨1, 1❩, ❨2, 5❩, ❨3, −2❩)
or
AreaChart('(❨1, 1❩, ❨2, 5❩, ❨3, −2❩))
A ≔ ❨❨1, 1❩, ❨2, 5❩, ❨3, −2❩❩
⎛ 1 1⎞ ⎜ 2 5⎟ ⎝ 3 −2⎠
AreaChart(A)
AreaChart(graph(sin, −2⋅π, 2⋅π))
AdjustVisual(ans, "lines": true, "line color": "red", "line width": 3, "fill color": "red", "fill opacity": 0.25)