csfieldguide/static/interactives/frequency-analysis/js/frequency-analysis.js
Function drawChart
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const drawChart = function(ctx, frequencies) {
/* This draws a chart on just Alphabetic characters on the chart */
const labels = frequencies.map(pair => pair[0]); // Keys
const freqData = frequencies.map(pair => pair[1]); // Values
const data = {
- Create a ticketCreate a ticket