diff --git a/src/api.ts b/src/api.ts
index 91582da..1a6fabd 100644
--- a/src/api.ts
+++ b/src/api.ts
@@ -444,8 +444,8 @@ const unlinkPlexAccount = () => {
// - - - User graphs - - -
-const fetchChart = (urlPath, days, chartType) => {
- const url = new URL("/api/v1/user" + urlPath, SEASONED_URL);
+const fetchGraphData = (urlPath, days, chartType) => {
+ const url = new URL("/api/v1/user/" + urlPath, SEASONED_URL);
url.searchParams.append("days", days);
url.searchParams.append("y_axis", chartType);
@@ -544,7 +544,7 @@ export {
logout,
getSettings,
updateSettings,
- fetchChart,
+ fetchGraphData,
getEmoji,
elasticSearchMoviesAndShows
};
diff --git a/src/components/Graph.vue b/src/components/Graph.vue
new file mode 100644
index 0000000..cd8ff43
--- /dev/null
+++ b/src/components/Graph.vue
@@ -0,0 +1,191 @@
+
+
+
+
+
+
+
diff --git a/src/icons/IconActivity.vue b/src/icons/IconActivity.vue
index 396de1a..d8a381e 100644
--- a/src/icons/IconActivity.vue
+++ b/src/icons/IconActivity.vue
@@ -5,13 +5,17 @@
width="24"
height="24"
viewBox="0 0 24 24"
- fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
- style="transition: stroke-width 0.5s ease"
>