MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / updateLineCountChart

Function updateLineCountChart

codeclash/viewer/static/js/analysis.js:114–121  ·  view source on GitHub ↗

* Update the existing chart with data for a new file

(fileName)

Source from the content-addressed store, hash-verified

112 * Update the existing chart with data for a new file
113 */
114function 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

Callers 1

setupFileDropdownFunction · 0.85

Calls 1

prepareChartDataFunction · 0.85

Tested by

no test coverage detected