src/sessionsConverter.js
function getExtractedDataAndTooltipNotes(valuesMap) {
    // go over currently added labels
    var data = [];
    var notes = [];
    labels.forEach(function labelIterator(label) {
      data.push(getExtractedDataValue(valuesMap.data[label.toLowerCase()]));
      notes.push(getExtractedNoteValue(valuesMap.notes[label.toLowerCase()]));
    });
    return {
      data: data,
      notes: notes
    };
  }
function getExtractedDataAndTooltipNotes(valuesMap) {
    // go over currently added labels
    var data = [];
    var notes = [];
    labels.forEach(function labelIterator(label) {
      data.push(getExtractedDataValue(valuesMap.data[label.toLowerCase()]));
      notes.push(getExtractedNoteValue(valuesMap.notes[label.toLowerCase()]));
    });
    return {
      data: data,
      notes: notes
    };
  }
function getExtractedDataAndTooltipNotes ( valuesMap ) { // go over currently added labels var data = [ ] ; var notes = [ ] ; labels . forEach ( function labelIterator ( label ) { data . push ( getExtractedDataValue ( valuesMap . data [ label . toLowerCase ( ) ] ) ) ; notes . push ( getExtractedNoteValue ( valuesMap . notes [ label . toLowerCase ( ) ] ) ) ; } ) ; return { data : data , notes : notes } ; }
Use values map to create the data and notes arrays confroming to ChartJS requirements.
Use values map to create the data and notes arrays confroming to ChartJS requirements .