.
This commit is contained in:
@@ -322,6 +322,12 @@
|
||||
const binDuration = parseFloat(document.getElementById('bin-duration').value) * 1000; // Convert to milliseconds
|
||||
const xAxisLabelFormat = document.getElementById('x-axis-format').value;
|
||||
|
||||
// Stop any existing bin rotation timer before recreating chart
|
||||
if (chart && chart.binCheckInterval) {
|
||||
clearInterval(chart.binCheckInterval);
|
||||
chart.binCheckInterval = null;
|
||||
}
|
||||
|
||||
// Recreate chart with new settings
|
||||
chart = new ASCIIBarChart('chart-container', {
|
||||
maxHeight: chartHeight,
|
||||
|
||||
Reference in New Issue
Block a user