Add wait for report with chart

This commit is contained in:
Constantin Graf
2024-11-28 17:22:42 +01:00
committed by Constantin Graf
parent a4d8a02b80
commit 05da595470
2 changed files with 8 additions and 0 deletions

View File

@@ -37,6 +37,9 @@
font-weight: bold;
}
</style>
<script>
window.status = 'processing';
</script>
<script src="echarts.min.js"></script>
</head>
<body>
@@ -190,6 +193,10 @@
]
};
myChart.on('finished', () => {
window.status = 'ready';
})
// Display the chart using the configuration items and data just specified.
myChart.setOption(option);
</script>