* Update the existing chart with data for a new file
(fileName)
| 112 | * Update the existing chart with data for a new file |
| 113 | */ |
| 114 | function updateLineCountChart(fileName) { |
| 115 | if (!lineCountChart || !analysisData) return; |
| 116 | |
| 117 | const chartData = prepareChartData(fileName); |
| 118 | lineCountChart.data = chartData; |
| 119 | lineCountChart.options.plugins.title.text = `Line Count Over Rounds: ${fileName}`; |
| 120 | lineCountChart.update(); |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * Prepare chart data for a specific file |
no test coverage detected