code: function processOptions(plot, options) {
  			if (options.series.curvedLines.active) {
  				plot.hooks.processDatapoints.unshift(processDatapoints);
  			}
  		}
docs: if the plugin is active register processDatapoints method