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 26cc737 commit 0b1b486
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions resources/views/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
{!! trans("panel.repartition") !!}
</div>
<div class="card-body">
<div style="width: 1000px; height: 400px;">
<div style="width: 1075px; height: 400px;">
<canvas id="bar_chart_div"></canvas>
</div>
</div>
Expand Down Expand Up @@ -459,13 +459,17 @@
},
},
scales: {
yAxes: [{
barPercentage: 1.0,
beginAtZero: true,
steps: 10,
stepValue: 5,
max: 100
}],
xAxes: [{
stacked: true,
}],
yAxes: [{
barPercentage: 1.0,
beginAtZero: true,
steps: 10,
stepValue: 5,
max: 100,
stacked: true,
}],
},
responsive: true,
maintainAspectRatio: false,
Expand All @@ -489,14 +493,6 @@
legend : {
display : false,
},
scales: {
xAxes: [{
stacked: true,
}],
yAxes: [{
stacked: true,
}]
},
onClick: function (event, array){
var active = window.barchart.getElementAtEvent(event);
if (active[0]==null) return;
Expand Down Expand Up @@ -524,11 +520,6 @@
Math.floor(cnf4.data.datasets[j].data[i]*1000/sum)/10;
}
</script>

<script type="text/javascript">
var topTags = [
{group:"{!! trans('cruds.menu.ecosystem.title_short') !!}", tag:"{!! trans('cruds.entity.title') !!}", num:{!! $entities !!}, url: "/admin/entities" },
{group:"{!! trans('cruds.menu.ecosystem.title_short') !!}", tag:"{!! trans('cruds.relation.title') !!}", num:{!! $relations !!}, url: "/admin/relations" },
Expand Down

0 comments on commit 0b1b486

Please sign in to comment.