src/components/graphs/PercentileLongTermAveragesGraph.js
Function PercentileLongTermAveragesGraph
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function PercentileLongTermAveragesGraph(props) {
function getMetadata(timeOfYear) {
// get a list of all available percentiles
function parsePercentile(metad) {
const clim_stat = metad["climatological_statistic"];
Function getMetadata
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getMetadata(timeOfYear) {
// get a list of all available percentiles
function parsePercentile(metad) {
const clim_stat = metad["climatological_statistic"];
if (_.startsWith(clim_stat, "percentile")) {