one more fix for graphs

This commit is contained in:
Barış Soner Uşaklı
2026-02-27 17:03:52 -05:00
parent f1fa8f12b1
commit 69ef72ba33
3 changed files with 11 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
.template-admin-dashboard .graph-container {
.template-admin-dashboard #analytics-panel .graph-container {
min-height: 300px;
}
.dashboard {
@@ -6,19 +6,21 @@
max-width: 100% !important;
}
#analytics-panel.fullscreen .graph-container {
width: 100%!important;
height: 100%!important;
max-height: 100%!important;
padding: 40px;
}
.graph-container {
max-height: 400px;
position: relative;
background: var(--bg-body-bg);
&.pie-chart {
max-height: 180px;
}
&.fullscreen {
width: 100%!important;
height: 100%!important;
padding: 40px;
}
}
.graph-legend {

View File

@@ -1,7 +1,7 @@
'use strict';
define('admin/dashboard/topics', [
'admin/modules/dashboard-line-graph', 'hooks', 'admin/modules/fullscreen'
'admin/modules/dashboard-line-graph', 'hooks', 'admin/modules/fullscreen',
], (graph, hooks, { setupFullscreen }) => {
const ACP = {};

View File

@@ -72,6 +72,7 @@ export function init({ set, dataset }) {
data: data,
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
'left-y-axis': {
type: 'linear',