Function Plot
function Cannonball Trajectories by Elevation
x-label Distance (meters)
y-label Height (meters)
x 0 to 250
15 degrees(blue): -0.001*x^2 + 0.27*x
30 degrees(green): -0.002*x^2 + 0.58*x
45 degrees(red): -0.003*x^2 + 0.75*xSyntax
function Chart Title
x-label X Axis Label
y-label Y Axis Label
x: min to max
Label(color): expression
Metadata Keys
| Key | Description | Required |
|---|---|---|
chart | Must be function | Yes |
title | Chart title displayed above the chart | No |
x-label | Label for the X axis | No |
y-label | Label for the Y axis | No |
x | X range in format min to max | No |
Data Format
Each data line defines a named function with an optional color and a math expression:
Label(color): expression
Expressions support:
- Basic arithmetic:
+,-,*,/ - Exponents:
x^2,x^3 - The variable
xrepresents the X axis value
Colors
Specify colors in parentheses after the function name:
Parabola(blue): x^2
Linear(red): 2*x + 1