Scatter Plot

dgmo
scatter Cannon Range vs Powder Charge
x-label Powder (lbs)
y-label Range (yards)

Long Tom 12 1800
Demi-Culverin 8 1200
Carronade 4 400
Swivel Gun 2 250
Nine-Pounder 6 900
Eighteen-Pounder 10 1500
Basilisk 14 2000
Falconet 3 350
Minion 5 700
Saker 7 1050
Range (yards) Powder (lbs) 75 500 1,000 1,500 2,000 2,175 0 3 6 9 12 15 16 Long Tom Demi-Culverin Carronade Swivel Gun Nine-Pounder Eighteen-Pounder Basilisk Falconet Minion Saker Cannon Range vs Powder Charge

Syntax

scatter Chart Title
x-label X Axis Label
y-label Y Axis Label
no-labels
size-label Size Legend Label

Point Name x y

// or with size (bubble chart)
Point Name x y size

Metadata Keys

KeyDescriptionRequired
chartMust be scatterYes
titleChart title displayed above the chartNo
x-labelLabel for the X axisNo
y-labelLabel for the Y axisNo
no-labelsHide point labels (labels are on by default)No
size-labelLabel for the size dimension (shown in legend for bubbles)No

Data Format

Each data line provides X and Y values, with an optional third value for bubble size:

// 2D scatter
Point A 12 1800
Point B 8 1200

// 3D bubble
Point A 85 90 80
Point B 45 55 35

Category Groups

Use [Category Name](color) headers to group points into colored categories:

[English Pirates](red)
Blackbeard 85 90 80
Calico Jack 45 55 35

[French Buccaneers](blue)
L'Olonnais 70 80 60

Variants

Bubble Chart

Add a third value per data point and use sizelabel to label the size dimension:

dgmo
scatter Pirate Fleets of the Caribbean
size-label Crew

[English Pirates](red)
Blackbeard 85 90 80
Calico Jack 45 55 35
Anne Bonny 50 70 30

[French Buccaneers](blue)
L'Olonnais 70 80 60
Pierre le Grand 30 45 25
GroupEnglish PiratesFrench Buccaneers 40 50 60 70 80 90 95 24 30 40 50 60 70 80 90 Blackbeard Calico Jack Anne Bonny L'Olonnais Pierre le Grand Pirate Fleets of the Caribbean