src/sessionsConverter.js
function getValuesMapsFromOutcomes(outcomes) {
    var dataMap = {};
    var noteMap = {};
    // add each outcome to a set
    outcomes.forEach(function outcomeIterator(outcome) {
      var lowerCaseLabel = updateLabels(outcome.outcome);
      dataMap[lowerCaseLabel] = outcome.value;
      noteMap[lowerCaseLabel] = outcome.notes;
    });
    return {
      data: dataMap,
      notes: noteMap
    };
  }
function getValuesMapsFromOutcomes(outcomes) {
    var dataMap = {};
    var noteMap = {};
    // add each outcome to a set
    outcomes.forEach(function outcomeIterator(outcome) {
      var lowerCaseLabel = updateLabels(outcome.outcome);
      dataMap[lowerCaseLabel] = outcome.value;
      noteMap[lowerCaseLabel] = outcome.notes;
    });
    return {
      data: dataMap,
      notes: noteMap
    };
  }
function getValuesMapsFromOutcomes ( outcomes ) { var dataMap = { } ; var noteMap = { } ; // add each outcome to a set outcomes . forEach ( function outcomeIterator ( outcome ) { var lowerCaseLabel = updateLabels ( outcome . outcome ) ; dataMap [ lowerCaseLabel ] = outcome . value ; noteMap [ lowerCaseLabel ] = outcome . notes ; } ) ; return { data : dataMap , notes : noteMap } ; }
this creates a mapping of the data value as well as notes for each label to be later used to create the ChartJS data array
this creates a mapping of the data value as well as notes for each label to be later used to create the ChartJS data array