Skip to content

Integration of Personalised EV Usage Insights use case into frontend#63

Open
jezzif wants to merge 21 commits intoChameleon-company:masterfrom
jezzif:master
Open

Integration of Personalised EV Usage Insights use case into frontend#63
jezzif wants to merge 21 commits intoChameleon-company:masterfrom
jezzif:master

Conversation

@jezzif
Copy link
Copy Markdown

@jezzif jezzif commented Apr 13, 2026

Personalised EV Usage Insights: Frontend Integration

What this PR does:

Integrates the EVAT-Data-Science Personalised EV Usage Insights use case into the website
Adds ML-powered results display and 3 charts

Files changed:

src/components/BarChart.jsx - new file with react-chartjs-2 bar chart component
src/components/InisghtsDisplay.jsx - new file with display for data and 3 BarChart components
src/components/PersonalisedInsightsFormComponent.jsx - new file with form
src/data/apiEndpoints.js - added two new endpoints
src/pages/PersonalisedInsights.jsx - new file with InsightsDisplay component
src/pages/PersonalisedInsightsForm.jsx - new file with PersonalisedInsightsFormComponent
src/pages/Profile.jsx - added links to PersonalisedInsights page and PersonalisedInsightsForm page
src/services/personalisedEvInsightsService.js - 2 new API functions added

Dependencies added:

react-chartjs-2 for creating BarChart component

Requirements to run:

Node backend must be running on port 8080
Python ML service must be running on port 8000
See setup guide in the repo for full instructions

Pages affected:

/profile - updated with new buttons that link to new pages created
/insights-form - added form that when submitted runs python ML service to predict driver type and potential savings for using an EV
/insights - added display that shows the results of python ML service prediction with driver profile, potential savings, and 3 charts comparing user's driving to similar drivers and all drivers in 3 categories:

  1. Car fuel efficiency
  2. Monthly fuel spending
  3. Weekly kms driven

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant