Line Chart

dgmo
line Ship Speed Over Voyage
series Knots
x-label Day
y-label Speed

era Day 1 -> Day 3 Rough Seas (red)
era Day 3 -> Day 7 Fair Winds (blue)

Day 1 8
Day 2 10
Day 3 7
Day 4 12
Day 5 9
Day 6 11
Day 7 6
Speed Day 0 2 4 6 8 10 12 Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7 Ship Speed Over Voyage

Syntax

line Chart Title
series Series Name
x-label X Axis Label
y-label Y Axis Label

Label value

Era Bands

Annotate named time periods with a shaded background band and label:

dgmo
line U.S. Strategic Petroleum Reserve
y-label Million Barrels

era '77 -> '81 Carter (blue)
era '81 -> '89 Reagan (red)
era '89 -> '93 Bush (red)

'77 7
'78 67
'79 91
'80 108
'81 230
'82 294
'83 379
Million Barrels 0 100 200 300 400 '77 '78 '79 '80 '81 '82 '83 U.S. Strategic Petroleum Reserve

Era syntax: era <start> -> <end> Label (color)

  • start and end must exactly match data point labels
  • Color is optional; omit for the palette default
  • Named colors: red, blue, green, orange, purple, teal, etc.
  • Multiple eras can overlap — both render without error

Metadata Keys

KeyDescriptionRequired
chartMust be lineYes
titleChart title displayed above the chartNo
seriesName of the data series (shown in legend)No
x-labelLabel for the X axisNo
y-labelLabel for the Y axisNo
colorOverride the line colorNo

Data Format

Each data line follows the pattern Label value:

Day 1 8
Day 2 10
Day 3 7