Colore les lignes du graph versements selon leur type
Les 6 comptes reprennent la couleur "versement" (orange, même que "Versement freelance" dans Répartition par type) puisque c'est la même somme, juste ventilée par bénéficiaire ; Salaire/stage et Sous-traitant gardent leur propre couleur de type. Réutilise typeColor()/TYPE_COLORS déjà en place, juste besoin d'un champ "type" sur chaque item pour que colorFor puisse s'en servir.
This commit is contained in:
@@ -63,11 +63,11 @@
|
||||
<section class="figli-chart-section">
|
||||
<h2>Total des versements par compte</h2>
|
||||
<p class="figli-note">Montant total versé à chaque compte associé, plus les salaires/stages et sous-traitants, toutes années confondues.</p>
|
||||
<h-bar-chart :items="versementsParCompteItems" :format-value="formatEurRound"></h-bar-chart>
|
||||
<h-bar-chart :items="versementsParCompteItems" :format-value="formatEurRound" :color-for="typeColor"></h-bar-chart>
|
||||
<div class="figli-year-hbar-grid">
|
||||
<div class="figli-year-hbar-card" v-for="y in versementsParCompteParAnnee" :key="y.annee">
|
||||
<div class="figli-year-hbar-title">{{ y.annee }}</div>
|
||||
<h-bar-chart :items="y.items" :format-value="formatEurRound" compact></h-bar-chart>
|
||||
<h-bar-chart :items="y.items" :format-value="formatEurRound" :color-for="typeColor" compact></h-bar-chart>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user