How a bill becomes law

How a bill becomes law, animated: proposal, committee, debate, the vote and the signature, including what happens when a bill is shelved. Great for civics classes.

animated flowchart Open in the editor

Step by step

  1. Someone proposes a new law
  2. A committee studies and amends it
  3. It is debated in congress
  4. Then comes the vote
  5. Without enough votes, it is shelved
  6. If approved, it goes to be signed
  7. And it becomes law

Make one like this

Three ways, all free. No account needed.

In the editor

Open this diagram in the editor and change the text, the blocks or the order of the steps. Export it as a GIF or an HTML page.

Open in the editor →

With your AI agent

Install the Fluxygram skill in Claude, Cursor, Codex or Gemini and ask for it in plain words:

Use the Fluxygram skill to make an animated diagram: How a bill becomes law.
How to install the skill →

On your site

Download the JSON and show it anywhere with one script:

<script type="module" src="https://cdn.jsdelivr.net/npm/fluxygram@0.3"></script>
<fluxy-gram src="law.flux.json"></fluxy-gram>
Download the JSON →
See the JSON behind this diagram
{
  "$schema": "/schema/v1.json",
  "type": "flow",
  "title": "How a bill becomes law",
  "nodes": [
    {
      "id": "bill",
      "label": "Proposal",
      "description": "someone drafts a bill",
      "kind": "start",
      "icon": "file"
    },
    {
      "id": "committee",
      "label": "Committee",
      "description": "studies and amends it",
      "icon": "users"
    },
    {
      "id": "debate",
      "label": "Debate",
      "description": "in congress",
      "icon": "message"
    },
    {
      "id": "vote",
      "label": "Approved?",
      "kind": "decision"
    },
    {
      "id": "shelved",
      "label": "Shelved",
      "icon": "folder"
    },
    {
      "id": "sign",
      "label": "Signed",
      "description": "by the head of state",
      "icon": "pen"
    },
    {
      "id": "law",
      "label": "It's law",
      "kind": "end",
      "accent": true,
      "icon": "check"
    }
  ],
  "edges": [
    {
      "id": "l1",
      "from": "bill",
      "to": "committee",
      "carries": "bill"
    },
    {
      "id": "l2",
      "from": "committee",
      "to": "debate"
    },
    {
      "id": "l3",
      "from": "debate",
      "to": "vote"
    },
    {
      "id": "lno",
      "from": "vote",
      "to": "shelved",
      "label": "no"
    },
    {
      "id": "lyes",
      "from": "vote",
      "to": "sign",
      "label": "yes"
    },
    {
      "id": "l6",
      "from": "sign",
      "to": "law"
    }
  ],
  "steps": [
    {
      "show": [
        "bill"
      ],
      "caption": "Someone proposes a new law"
    },
    {
      "show": [
        "l1"
      ],
      "flow": "l1",
      "caption": "A committee studies and amends it"
    },
    {
      "show": [
        "l2"
      ],
      "flow": "l2",
      "caption": "It is debated in congress"
    },
    {
      "show": [
        "l3"
      ],
      "flow": "l3",
      "state": {
        "vote": "pending"
      },
      "caption": "Then comes the vote"
    },
    {
      "show": [
        "lno"
      ],
      "flow": "lno",
      "state": {
        "shelved": "error",
        "lno": "error"
      },
      "caption": "Without enough votes, it is shelved"
    },
    {
      "show": [
        "lyes"
      ],
      "flow": "lyes",
      "state": {
        "vote": "success"
      },
      "caption": "If approved, it goes to be signed"
    },
    {
      "show": [
        "l6"
      ],
      "flow": "l6",
      "highlight": [
        "law"
      ],
      "caption": "And it becomes law"
    }
  ]
}

More examples

See all examples →