Skip to content

Commit

Permalink
Merge pull request dbarzin#366 from dbarzin/dev
Browse files Browse the repository at this point in the history
fix chart
  • Loading branch information
dbarzin authored May 2, 2023
2 parents 41136c9 + b38a899 commit 74583fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/views/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,10 @@
data: {
mode: 'single',
labels: [
@can('gdpr_access')
"{!! trans('cruds.menu.ecosystem.title_short') !!}",
@can('gdpr_access')
"{!! trans('cruds.menu.gdpr.title_short') !!}",
@endcan
"{!! trans('cruds.menu.ecosystem.title_short') !!}",
"{!! trans('cruds.menu.metier.title_short') !!}",
"{!! trans('cruds.menu.application.title_short') !!}",
"{!! trans('cruds.menu.administration.title_short') !!}",
Expand Down Expand Up @@ -510,9 +511,8 @@
}
};
// Normalize data (%)
for (let i = 0; i < cnf4.data.datasets[0].data.length; i++) {
for (let i = 0; i < cnf4.data.labels.length; i++) {
var sum=0;
for (let j = 0; j < cnf4.data.datasets.length; j++)
sum += cnf4.data.datasets[j].data[i];
Expand Down

0 comments on commit 74583fb

Please sign in to comment.