MINI Sh3ll
<div class="row">
<div class="col-xl-3 col-md-6 mb-4">
<!-- Dashboard info widget 1-->
<div class="card border-top-0 border-bottom-0 border-right-0 border-left-lg border-primary h-100">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<div class="small font-weight-bold text-primary mb-1">Total Energy Till Date</div>
<div class="h5">5500KW</div>
</div>
<div class="ml-2"><svg class="svg-inline--fa fa-dollar-sign fa-w-9 fa-2x text-gray-200" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="dollar-sign" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 288 512" data-fa-i2svg=""><path fill="currentColor" d="M209.2 233.4l-108-31.6C88.7 198.2 80 186.5 80 173.5c0-16.3 13.2-29.5 29.5-29.5h66.3c12.2 0 24.2 3.7 34.2 10.5 6.1 4.1 14.3 3.1 19.5-2l34.8-34c7.1-6.9 6.1-18.4-1.8-24.5C238 74.8 207.4 64.1 176 64V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48h-2.5C45.8 64-5.4 118.7.5 183.6c4.2 46.1 39.4 83.6 83.8 96.6l102.5 30c12.5 3.7 21.2 15.3 21.2 28.3 0 16.3-13.2 29.5-29.5 29.5h-66.3C100 368 88 364.3 78 357.5c-6.1-4.1-14.3-3.1-19.5 2l-34.8 34c-7.1 6.9-6.1 18.4 1.8 24.5 24.5 19.2 55.1 29.9 86.5 30v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48.2c46.6-.9 90.3-28.6 105.7-72.7 21.5-61.6-14.6-124.8-72.5-141.7z"></path></svg><!-- <i class="fas fa-dollar-sign fa-2x text-gray-200"></i> Font Awesome fontawesome.com --></div>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-md-6 mb-4">
<!-- Dashboard info widget 2-->
<div class="card border-top-0 border-bottom-0 border-right-0 border-left-lg border-secondary h-100">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<div class="small font-weight-bold text-secondary mb-1">Total Energy in This Month</div>
<div class="h5">800</div>
</div>
<div class="ml-2"><svg class="svg-inline--fa fa-tag fa-w-16 fa-2x text-gray-200" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="tag" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" data-fa-i2svg=""><path fill="currentColor" d="M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"></path></svg><!-- <i class="fas fa-tag fa-2x text-gray-200"></i> Font Awesome fontawesome.com --></div>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-md-6 mb-4">
<!-- Dashboard info widget 3-->
<div class="card border-top-0 border-bottom-0 border-right-0 border-left-lg border-success h-100">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<div class="small font-weight-bold text-success mb-1">Inverters</div>
<div class="h5">5</div>
</div>
<div class="ml-2"><svg class="svg-inline--fa fa-mouse-pointer fa-w-10 fa-2x text-gray-200" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="mouse-pointer" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" data-fa-i2svg=""><path fill="currentColor" d="M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"></path></svg><!-- <i class="fas fa-mouse-pointer fa-2x text-gray-200"></i> Font Awesome fontawesome.com --></div>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-md-6 mb-4">
<!-- Dashboard info widget 4-->
<div class="card border-top-0 border-bottom-0 border-right-0 border-left-lg border-info h-100">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1">
<div class="small font-weight-bold text-info mb-1">Average Energy Per Day</div>
<div class="h5">120</div>
</div>
<div class="ml-2"><svg class="svg-inline--fa fa-percentage fa-w-12 fa-2x text-gray-200" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="percentage" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" data-fa-i2svg=""><path fill="currentColor" d="M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"></path></svg><!-- <i class="fas fa-percentage fa-2x text-gray-200"></i> Font Awesome fontawesome.com --></div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6 mb-4">
<div class="card h-100">
<div class="card-header">Daily Energy Produced By Plants in this Month</div>
<div class="card-body">
<div id="dailyChart" class="c3" style="max-height: 280px; position: relative;"></div>
</div>
</div>
</div>
<div class="col-lg-6 mb-4">
<div class="card h-100">
<div class="card-header">Monthly Energy Produced By Plants in this Month</div>
<div class="card-body">
<div id="monthlyChart" class="c3" style="max-height: 280px; position: relative;"></div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6 mb-4">
<div class="card h-100">
<div class="card-header">Energy Produced By Plants in This Month</div>
<div class="card-body">
<div id="monthRequestsDonutChart"></div>
<div class="list-group list-group-flush">
<div class="list-group-item d-flex align-items-center justify-content-between small px-0 py-2">
<div class="mr-3">
<svg class="svg-inline--fa fa-circle fa-w-16 fa-sm mr-1 text-blue" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="circle" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" data-fa-i2svg=""><path fill="currentColor" d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"></path></svg><!-- <i class="fas fa-circle fa-sm mr-1 text-blue"></i> Font Awesome fontawesome.com -->
Plant 1
</div>
<div class="font-weight-500 text-dark">17.5%</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6 mb-4">
<div class="card h-100">
<div class="card-header">Energy Produced By Plants Till Now</div>
<div class="card-body">
<div id="todaysRequestsDonutChart"></div>
<div class="list-group list-group-flush">
<div class="list-group-item d-flex align-items-center justify-content-between small px-0 py-2">
<div class="mr-3">
<svg class="svg-inline--fa fa-circle fa-w-16 fa-sm mr-1 text-blue" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="circle" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" data-fa-i2svg=""><path fill="currentColor" d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"></path></svg><!-- <i class="fas fa-circle fa-sm mr-1 text-blue"></i> Font Awesome fontawesome.com -->
Plant 1
</div>
<div class="font-weight-500 text-dark">42.3%</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var chart1 = c3.generate({
bindto: '#dailyChart',
data: {
x: 'x',
columns: [
['x', '2024-08-25', '2024-08-26', '2024-08-27', '2024-08-28', '2024-08-29', '2024-08-30','2024-08-31'],
['Plant 1', 30, 200, 100, 100, 150, 150]
],
type: 'bar'
},
axis: {
x: {
type: 'timeseries',
tick: {
format: '%d-%b'
}
}
},
bar: {
width: {
ratio: 0.5 // this makes bar width 50% of length between ticks
}
// or
//width: 100 // this makes bar width 100px
}
});
var chart2 = c3.generate({
bindto: '#monthlyChart',
data: {
x: 'x',
columns: [
['x', '2024-03-01', '2024-04-01', '2024-05-01', '2024-06-01', '2024-07-01', '2024-08-01','2024-09-01'],
['Plant 1', 300, 200, 100, 100, 150, 270],
],
type: 'bar'
},
axis: {
x: {
type: 'timeseries',
tick: {
format: '%b-%Y'
}
}
},
bar: {
width: {
ratio: 0.5 // this makes bar width 50% of length between ticks
}
// or
//width: 100 // this makes bar width 100px
}
});
var charttRDc = c3.generate({
bindto:'#todaysRequestsDonutChart',
data: {
columns: [
['Plant 1', 755687],
],
type : 'donut',
//onclick: function (d, i) { console.log("onclick", d, i); },
//onmouseover: function (d, i) { console.log("onmouseover", d, i); },
//onmouseout: function (d, i) { console.log("onmouseout", d, i); }
},
donut: {
title: "Energy"
}
});
var chartmRDc = c3.generate({
bindto:'#monthRequestsDonutChart',
data: {
columns: [
['Plant 1', 2755687],
],
type : 'donut',
//onclick: function (d, i) { console.log("onclick", d, i); },
//onmouseover: function (d, i) { console.log("onmouseover", d, i); },
//onmouseout: function (d, i) { console.log("onmouseout", d, i); }
},
donut: {
title: "Energy"
}
});
</script>
OHA YOOOO