uccser/cs-field-guide

View on GitHub
csfieldguide/static/interactives/frequency-analysis/js/frequency-analysis.js

Summary

Maintainability
A
1 hr
Test Coverage

Function drawChart has 32 lines of code (exceeds 25 allowed). Consider refactoring.
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 = {

There are no issues that match your filters.

Category
Status