unicef/magicbox-maps-prototype

View on GitHub
src/components/connectivity-chart.jsx

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Function createChart has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

createChart() {
let ctx = this.canvasEl.getContext("2d");
let totals = this.formatTotals(this.props.totals);
let chart = new Chart(ctx,{
type: 'pie',
Severity: Minor
Found in src/components/connectivity-chart.jsx - About 1 hr to fix
    Category
    Status