Split getSeries using a function by serie type