Skip to content

Commit 23ab1bb

Browse files
authored
Create analytics.py
1 parent 35a6be9 commit 23ab1bb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/analytics.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import matplotlib.pyplot as plt
2+
3+
class Analytics:
4+
def __init__(self):
5+
self.data = []
6+
7+
def record_data(self, value):
8+
self.data.append(value)
9+
10+
def plot_data(self):
11+
plt.plot(self.data)
12+
plt.title("Transaction Data Over Time")
13+
plt.xlabel("Time")
14+
plt.ylabel("Value")
15+
plt.show()

0 commit comments

Comments
 (0)