-
Notifications
You must be signed in to change notification settings - Fork 761
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
Titles/labels and the graphs in Charging stats does not match #814
Comments
…now match pie-charts in Charging stats (#998) * new dashboard for reporting to Dutch tax based on #989 * Titles/labels now match pie-charts in Charging stats Solves #814 - just had to reverse the "ORDER BY" for the pie-charts... * Include reports in Docker image * Use new table component * Show geo fences where applicable Closes #989 Fixes #814 Co-authored-by: Adrian Kumpf <[email protected]>
I don't want to be too picky, but I have just seen the result in the version 1.20.1 and I think that there is still a way to improve @roadrash2108 @adriankumpf . Previously, AC was green and DC was yellow, which was correct in my opinion (AC is better for the battery life, then I would expect it to use the green color). Now the colors are vice versa. The title and the order in the pie graph match, this is correct (left AC, right DC), however when you look under the pie graphs, the two rows with description are now vice versa - the first row is DC, the second is AC. The previous order was correct - first AC and then DC (the same is in the title of the graph and in the pie graph), now it has changed to the exact opposite. So one problem was solved and another two were introduced... |
I will look into it. @petariga in case you have a docker-installation of your TeslaMate consider changing the grafana-part to "edge", so that you get the latest changes before the release and can give early feedback. UPDATE: I've found and fixed the color-problem. Regarding the sorting there seems the fixed order, that pie-charts always are filled clockwise - you can test this when sorting by clicking on the headers in the leged (e.g. "total" or "percentage"). I will look into it if I can find more. |
So, here the summary of my investigation:
So having AC on the left would mean:
Seems to be a lengthy process, therefore I'm starting a PR for the colors and leave the "workaround" with the "ORDER BY ... DESC", which has the only drawback, that DC then comes before AC in the legend... |
FYI: I also created an issue here: flot/flot#1769 - let's see where this leads to... |
Well done research @roadrash2108 , so the best would be to have an anticlockwise option for drawing the pie chart. I understand that this is going to take a longer while... |
Describe the bug
It is just a nuance. When you look at the “Charging stats” in Grafana the pie chart of the AC/DC split has the AC value on the right (green) and DC value on the left (yellow), however the title of the chart states “AC/DC - kWh”, so from the first look you expect the AC on the left and DC on the right. The same vice versa expectation is for the “AC/DC - Duration”.
Expected behavior
If the pie chart title states AC/DC, then the circle chart should have AC charges on the left and DC charges on the right (regardless of the color chosen).
Screenshots
Environment
The text was updated successfully, but these errors were encountered: