fixes
This commit is contained in:
@@ -218,11 +218,18 @@
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
if (data.success) {
|
||||
// Update charts with new data
|
||||
// Update charts with new data and pivot bounds
|
||||
if (appState.chartManager) {
|
||||
appState.chartManager.updateCharts(data.chart_data);
|
||||
appState.chartManager.updateCharts(data.chart_data, data.pivot_bounds);
|
||||
}
|
||||
|
||||
// Show pivot bounds info if available
|
||||
if (data.pivot_bounds) {
|
||||
const pivotInfo = data.pivot_bounds;
|
||||
showSuccess(`Chart data refreshed successfully. Found ${pivotInfo.total_levels} pivot levels (${pivotInfo.support_levels.length} support, ${pivotInfo.resistance_levels.length} resistance) from ${pivotInfo.timeframe} data over ${pivotInfo.period}`);
|
||||
} else {
|
||||
showSuccess('Chart data refreshed successfully');
|
||||
}
|
||||
showSuccess('Chart data refreshed successfully');
|
||||
} else {
|
||||
showError('Failed to refresh data: ' + data.error.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user