mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-01 18:11:12 +01:00
one more fix for graphs
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 = {};
|
||||
|
||||
|
||||
@@ -72,6 +72,7 @@ export function init({ set, dataset }) {
|
||||
data: data,
|
||||
options: {
|
||||
responsive: true,
|
||||
maintainAspectRatio: false,
|
||||
scales: {
|
||||
'left-y-axis': {
|
||||
type: 'linear',
|
||||
|
||||
Reference in New Issue
Block a user