From c2442ca62e5d4b32f1a913336f51282b9490b1f2 Mon Sep 17 00:00:00 2001
From: Galen Guyer <galen@galenguyer.com>
Date: Wed, 13 Apr 2022 20:16:57 -0400
Subject: To the Moon!!!

---
 src/pages/Graph.jsx | 12 ++++++++++++
 1 file changed, 12 insertions(+)

(limited to 'src/pages/Graph.jsx')

diff --git a/src/pages/Graph.jsx b/src/pages/Graph.jsx
index 6754905..6f19304 100644
--- a/src/pages/Graph.jsx
+++ b/src/pages/Graph.jsx
@@ -9,6 +9,7 @@ import {
     YAxis,
     Tooltip,
     ReferenceLine,
+    ReferenceDot,
     ResponsiveContainer,
     Label,
 } from "recharts";
@@ -32,6 +33,9 @@ const Graph = (props) => {
         };
     });
 
+    const latest = parsed[parsed.length - 1];
+    const toTheMoon = true;
+
     return (
         <div>
             <div className="Title">{name}</div>
@@ -53,6 +57,14 @@ const Graph = (props) => {
                 />
                 {}
                 <CartesianGrid strokeDasharray="3 3" />
+                {toTheMoon ? (
+                    <ReferenceDot
+                        x={latest["date"]}
+                        y={latest["value"]}
+                        r={0}
+                        label={<Label className="ToTheMoon">🚀</Label>}
+                    />
+                ) : null}
                 <XAxis
                     dataKey="date"
                     type="number"
-- 
cgit v1.2.3

