Update docs/ecolyo/functionalities/analysis.md
Compare changes
+ 16
− 14
It allows him to compare his consumption with the previous month and also with an average consumption based on his profile if he completed it.
On the left side, the user can see his consumption for the connected fluids. On the right side, there is by default the consumption of default profile until user completes his own. Once it is done, the comparison is much more accurate.
Also, when user has the possibility to switch the comparison with the average profile or the ideal profile. For now, the ideal profile just represents the average profile's consumption minus 10%.
Each line of the graph is handled by the **AnalysisConsumptionRow** component. It displays the consumption for a given fluid, a draws a bar sized in comparison with the total and applies the 10% ideal coefficient when user clicks on his ideal consumption.
Note that only the consumption related to a connected fluid are taken for the calculation of the total price of the ideal or average consumption, even if the consumption indicators are shown for the non-connected fluids. (it is given a indicator for the user, considering he may use this fluid but doesn't have a connected device)
Notez que seuls les consommations liées à un fluide connecté sont prises en compte pour le calcul du prix total de la consommation idéale ou moyenne, même si les indicateurs de consommation sont affichés pour les fluides non connectés. (un indicateur est donné à l'utilisateur, en considérant qu'il peut utiliser ce fluide mais n'a pas de dispositif connecté).
The **Consumption Service** allows us to get the user's consumption on the given month, and the **Performance Indicator Service** allows us to get the comparative indicator between the currently displayed month and the previous one.
In order to get the accurate consumption estimation, we use the _fluidForecast_ stored in the user's profile. You can see more about it in the next section : [ProfileType](./profile_type.md)
Users have the possibility to navigate between current and previous analysis, month by month, using the **DateNavigator** at the top of the screen. It is not possible to navigate after the last analysis (which is set the next month + 3 days in order to have a month with complete data). For example, the 3rd of June, a user will be able to see his analysis of Mai.
Les utilisateurs ont la possibilité de naviguer entre l'analyse actuelle et précédente, mois par mois, en utilisant le **DateNavigator** en haut de l'écran. Il n'est pas possible de naviguer après la dernière analyse (qui est fixée au mois suivant + 3 jours afin d'avoir un mois avec des données complètes). Par exemple, le 3 juin, un utilisateur pourra voir son analyse de Mai.
Users won't be blocked to navigate in previous dates, and if there is no analysis to display, we use the same behavior than in the graph : we display dashes instead of data.