docs: function shouldRedraw(oldEntries, newEntries) {
          if (!oldEntries || !newEntries) {
              return true;
          }
  
          if (oldEntries.length !== newEntries.length) {
              return true;
          }
          var i, newEntry, oldEntry, newOpts, oldOpts;
          for (i = 0; i < newEntries.length; i++) {
              newEntry = newEntries[i];
              oldEntry = oldEntries[i];
  
              if (newEntry.label !== oldEntry.label) {
                  return true;
              }
  
              if (newEntry.color !== oldEntry.color) {
                  return true;
              }
  
              // check for changes in lines options
              newOpts = newEntry.options.lines;
              oldOpts = oldEntry.options.lines;
              if (checkOptions(newOpts, oldOpts)) {
                  return true;
              }
  
              // check for changes in points options
              newOpts = newEntry.options.points;
              oldOpts = oldEntry.options.points;
              if (checkOptions(newOpts, oldOpts)) {
                  return true;
              }
  
              // check for changes in bars options
              newOpts = newEntry.options.bars;
              oldOpts = oldEntry.options.bars;
              if (checkOptions(newOpts, oldOpts)) {
                  return true;
              }
          }
  
          return false;
      }