diff --git a/my-app/src/components/visualizations/IslandBarChart.jsx b/my-app/src/components/visualizations/IslandBarChart.jsx index a5920ee..de594ee 100644 --- a/my-app/src/components/visualizations/IslandBarChart.jsx +++ b/my-app/src/components/visualizations/IslandBarChart.jsx @@ -31,7 +31,6 @@ export const options = { position: "bottom", }, }, - responsive: true, interaction: { mode: "index", intersect: false, @@ -76,21 +75,21 @@ const IslandBarChart = ({ data }) => { { label: "Complete", data: completedEvents, - backgroundColor: '#06b6d4', + backgroundColor: '#0e7490', stack: "Stack 0", }, { label: "In Progress", data: notCompletedEvents, - backgroundColor: '#164e63', + backgroundColor: '#06b6d4', stack: "Stack 0", }, ], }; return ( -
- +
+ {graphReady ? ( <> diff --git a/my-app/src/components/visualizations/IslandPieChart.jsx b/my-app/src/components/visualizations/IslandPieChart.jsx index 87a4a33..4d69cfe 100644 --- a/my-app/src/components/visualizations/IslandPieChart.jsx +++ b/my-app/src/components/visualizations/IslandPieChart.jsx @@ -23,7 +23,7 @@ const IslandPieChart = ({ data }) => { { label: "% of Events", data: totalEvents, - backgroundColor: islands.map(() => getRandomColor()), + backgroundColor: ['#22c55e', '#16a34a', '#15803d', '#166534', '#14532d', '#052e16'], borderWidth: 1, }, ], @@ -35,17 +35,16 @@ const IslandPieChart = ({ data }) => { display: false, text: "", }, - }, - legend: { - display: true, - position: "bottom", + legend: { + position: "bottom", + }, }, responsive: true, maintainAspectRatio: false, }; return ( -
+
); diff --git a/my-app/src/pages/data-insights/index.jsx b/my-app/src/pages/data-insights/index.jsx index 334bc48..2c3fb90 100644 --- a/my-app/src/pages/data-insights/index.jsx +++ b/my-app/src/pages/data-insights/index.jsx @@ -52,23 +52,22 @@ const DataInsights = () => { }, []); const tabContent = [ -
-
+
+
- Current Events Location + Debris Report Locations
{/* */}
-
-
+
Debris Reports by Island
-
+
Status
@@ -109,7 +108,7 @@ const DataInsights = () => { return (
-

+

Data Insights