private XYSeries createHPSSeries(Combat c,CombatParticipant cp) {
XYSeries xys=new XYSeries(cp.getName());
for(int i=0;i<c.getCombatDuration();i++) {
boolean foundIt=false;
for(Iterator<HPSTick> it=cp.getHpsRealTimeStats().getHPSTicks().iterator();it.hasNext() && !foundIt;) {
HPSTick hpsTick=it.next();
if(hpsTick.getStartSecond()<=i && (hpsTick.getStartSecond()+hpsTick.getSecondsDuration())>i) {
foundIt=true;
xys.add(new XYDataItem(i, hpsTick.getHealingDone()/hpsTick.getSecondsDuration()));
}
}
if(!foundIt)
xys.add(new XYDataItem(i, 0));
}