Here is the updated, complete code.
### **Key Features in This Version:**
1. **"Full Mode" Table (Top):** The table is now the primary control at the top. It is fully scrollable and allows you to edit **both** the Volume (NaOH) and the pH.
2. **Live Two-Way Reactivity:**
* If you change the **pH**, the point moves vertically on the graph instantly.
* If you change the **Volume**, the point moves horizontally. The graph **automatically re-sorts** itself so the line never gets tangled, even if you type a volume out of order.
3. **Source Data:** It pre-loads the exact values from your lab notes.
You can save this as an `.html` file and run it immediately.
```html
H3PO4 Titration: Full Data Editor
```
Phosphoric Acid Titration Analysis
Live Data Editor: Modify Volume or pH below to see instant graph updates.
| Volume NaOH (mL) (Editable) | pH Value (Editable) |
|---|
Experiment Insights:
- Data Source: The "Original" preset uses exact values from your provided lab notes.
- Live Sorting: If you change a Volume (e.g., changing 2.0 to 55.0), the graph automatically moves that point to the correct position on the curve.
- Equivalence Points: Look for the two steep rises (kinks) at approx 30 mL and 52 mL to calculate $K_1$ and $K_2$.
