Skip to content

Commit

Permalink
fix chart
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed May 2, 2023
1 parent 8ef30cd commit b38a899
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions resources/views/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
mode: 'single',
labels: [
@can('gdpr_access')
"{!! trans('cruds.menu.gdpr.title') !!}",
"{!! trans('cruds.menu.gdpr.title_short') !!}",
@endcan
"{!! trans('cruds.menu.ecosystem.title_short') !!}",
"{!! trans('cruds.menu.metier.title_short') !!}",
Expand Down Expand Up @@ -511,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 b38a899

Please sign in to comment.