summaryrefslogtreecommitdiffstats
path: root/ogcp/static/AdminLTE/plugins/chart.js/Chart.css
diff options
context:
space:
mode:
authorDaniel García Moreno <danigm@soleta.eu>2021-06-08 12:36:55 +0200
committerDaniel García Moreno <danigm@soleta.eu>2021-06-08 12:36:55 +0200
commit514fb84a565e8bc9eb550164d545fa72d77c2b38 (patch)
tree2afdc9b7a225cd9066ca11e77bcc862986fbe65e /ogcp/static/AdminLTE/plugins/chart.js/Chart.css
parent22dcea19ff74871b7200bfc7f976836f436c5342 (diff)
Add chart to dashboard
This patch adds an example chart using chartjs to the dashboard to show the disk usage. https://www.chartjs.org/docs/latest/getting-started/
Diffstat (limited to 'ogcp/static/AdminLTE/plugins/chart.js/Chart.css')
-rwxr-xr-xogcp/static/AdminLTE/plugins/chart.js/Chart.css47
1 files changed, 47 insertions, 0 deletions
diff --git a/ogcp/static/AdminLTE/plugins/chart.js/Chart.css b/ogcp/static/AdminLTE/plugins/chart.js/Chart.css
new file mode 100755
index 0000000..5e74959
--- /dev/null
+++ b/ogcp/static/AdminLTE/plugins/chart.js/Chart.css
@@ -0,0 +1,47 @@
+/*
+ * DOM element rendering detection
+ * https://davidwalsh.name/detect-node-insertion
+ */
+@keyframes chartjs-render-animation {
+ from { opacity: 0.99; }
+ to { opacity: 1; }
+}
+
+.chartjs-render-monitor {
+ animation: chartjs-render-animation 0.001s;
+}
+
+/*
+ * DOM element resizing detection
+ * https://github.com/marcj/css-element-queries
+ */
+.chartjs-size-monitor,
+.chartjs-size-monitor-expand,
+.chartjs-size-monitor-shrink {
+ position: absolute;
+ direction: ltr;
+ left: 0;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ overflow: hidden;
+ pointer-events: none;
+ visibility: hidden;
+ z-index: -1;
+}
+
+.chartjs-size-monitor-expand > div {
+ position: absolute;
+ width: 1000000px;
+ height: 1000000px;
+ left: 0;
+ top: 0;
+}
+
+.chartjs-size-monitor-shrink > div {
+ position: absolute;
+ width: 200%;
+ height: 200%;
+ left: 0;
+ top: 0;
+}