src/components/graphs/DualLongTermAveragesGraph.js
Function DualLongTermAveragesGraph
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function DualLongTermAveragesGraph(props) {
function getMetadata(timeOfYear) {
// Return metadata for variable_id and, if present and different, for
// comparand_id.
const commonMetadataFromProps = _.pick(