mirror of
https://github.com/woodchen-ink/proxy-go.git
synced 2025-07-18 08:31:55 +08:00
- Updated chart management logic to ensure proper destruction of existing charts before creating new ones, preventing memory leaks. - Enhanced data validation by adding a check for the data format returned from the API, ensuring it is an array before processing. - Consolidated chart options into a common configuration for improved consistency across different charts. - Improved the updateChart function to handle canvas element existence checks and streamline chart creation. These changes enhance the performance and reliability of the metrics dashboard, providing clearer visualizations and better data handling.