Skip to content
Graphviz (DOT) templates

Chemistry — Flame Test Colours

Characteristic flame colours of metal cations.

Template previewGraphviz (DOT)
FlameTests Lithium Lithium Crimson red Crimson red Lithium->Crimson red Sodium Sodium Yellow-orange Yellow-orange Sodium->Yellow-orange Potassium Potassium Lilac Lilac Potassium->Lilac Calcium Calcium Brick red Brick red Calcium->Brick red Copper Copper Blue-green Blue-green Copper->Blue-green Barium Barium Apple green Apple green Barium->Apple green

What this template contains

Graph
Directed
Edges
6
Source
10 lines

Make it your own.

digraph FlameTests {
  rankdir=LR;
  node [shape=box, style=rounded];
  "Lithium" -> "Crimson red";
  "Sodium" -> "Yellow-orange";
  "Potassium" -> "Lilac";
  "Calcium" -> "Brick red";
  "Copper" -> "Blue-green";
  "Barium" -> "Apple green";
}