Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sessions UI: visualization, month/year charts #15902

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

naltatis
Copy link
Member

@naltatis naltatis commented Sep 4, 2024

wip

TODOs

  • header and year navigation
  • add cost, price and co2 chart
  • optimize for mobile
  • add solar percentage month radar chart (in year and total)
  • improve charge history title

@naltatis naltatis added enhancement New feature or request ux User experience/ interface labels Sep 4, 2024
@naltatis naltatis changed the title Ladevorgänge UI: Grafische Auswertung nach Monat und Jahr Sessions UI: visualization, month/year charts Sep 4, 2024
@github-actions github-actions bot added the stale Outdated and ready to close label Sep 11, 2024
@github-actions github-actions bot closed this Sep 16, 2024
@naltatis naltatis removed the stale Outdated and ready to close label Sep 16, 2024
@naltatis naltatis reopened this Sep 16, 2024
@naltatis
Copy link
Member Author

sneak preview

Bildschirmfoto 2024-09-18 um 20 24 10
Bildschirmfoto 2024-09-18 um 20 24 03
Bildschirmfoto 2024-09-18 um 20 16 37
Bildschirmfoto 2024-09-18 um 20 13 28

@andig
Copy link
Member

andig commented Sep 21, 2024

Das sieht richtig genial aus. Bei kurzem Test ist es mir allerdings nicht gelungen, in diesem Branch die "Charging Sessions" zu öffnen- Menüclick tut gar nichts mehr. Console:

TypeError: undefined is not an object (evaluating 'G.overrides.pie.plugins') — 

@VolkerK62
Copy link
Contributor

Vorsichtshalber die Frage:
CSV Download bleibt aber hoffentlich weiterhin erhalten?

@andig
Copy link
Member

andig commented Sep 21, 2024

@VolkerK62 was hat das mit Grafiken zu tun? Nix...

@VolkerK62
Copy link
Contributor

ok, ok. bitte nicht schlagen 😄

@naltatis
Copy link
Member Author

@VolkerK62 klar, CSV gleibt weiterhin da
@andig Ok, da brauch ich mehr Infos. Hast du npm install gemacht?

@andig
Copy link
Member

andig commented Sep 23, 2024

Hast du npm install gemacht?

npm ci

@andig
Copy link
Member

andig commented Sep 23, 2024

Geht weder Safari noch Chrome:

TypeError: Cannot read properties of undefined (reading 'plugins')
    at Sessions-Dy-EagzX.js:16:147609

@martin8310
Copy link

Wunderschön ;-)

@naltatis
Copy link
Member Author

Geht weder Safari noch Chrome:

Merkwürdig. Ich schau mal ob ich das irgendwie reproduziert bekommen.

@StevieC121176
Copy link

Bin begeistert, super gelungen. 👍🤗 ist echt Hammer geworden

@naltatis
Copy link
Member Author

@StevieC121176 das ist ja noch nicht fertig 😄. Da geht noch was.

@naltatis
Copy link
Member Author

Monat/Jahr Navigation

phone month phone month select phone month solar phone year phone total tablet month select tablet year select total vehicles

@StevieC121176
Copy link

Ich würde sagen, da bleiben keine Wünsche offen.

@blenni
Copy link
Contributor

blenni commented Sep 23, 2024

Sieht super aus 👍
Werden die Farben für die Fahrzeuge automatisch vergeben oder kann man das manuell beeinflussen? Wenn manuell, könnte man z.B. das rote Auto in rot und das blaue Auto in blau darstellen, was es noch intuitiver machen würde 😉

@naltatis
Copy link
Member Author

@blenni Zu den Farben: die werden aktuell fest nach einer Farbpalette zugeteilt die in Light und Darkmode funktioniert und auch untereinander genug Kontrast bietet.

Manuelle Zuordnung von Farben zu Ladepunkten und Fahrzeugen könnte man in der Tat machen. Ich nehm das mal als Erweiterungsidee für später mit wenn alles UI konfigurierbar ist. Hex-Werte in yaml eintragen würd ich nicht machen wollen.

@andig
Copy link
Member

andig commented Sep 25, 2024

Update: mit npm run dev kann ich das Menü öffnen. Irgendwas scheint also im build zu fehlen.

@naltatis
Copy link
Member Author

Update: mit npm run dev kann ich das Menü öffnen.

Danke für die Analyse. Ich bin aktuell in der Tat nur in dev unterwegs.

@naltatis
Copy link
Member Author

@andig Fehler gefunden. Nun funktionieren die Charts auch im Production Build der UI.

@naltatis
Copy link
Member Author

Improved chart titles, legend and responsive behavior

Bildschirmfoto 2024-09-27 um 21 04 31

Bildschirmfoto 2024-09-27 um 20 51 54

Bildschirmfoto 2024-09-27 um 21 04 43

Bildschirmfoto 2024-09-27 um 21 04 48

Bildschirmfoto 2024-09-27 um 21 05 02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ux User experience/ interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants