private XYSeries createDPSSeries(Combat c,CombatParticipant cp) {
XYSeries xys=new XYSeries(cp.getName());
for(int i=0;i<c.getCombatDuration();i++) {
boolean foundIt=false;
for(Iterator<DPSTick> it=cp.getDpsRealTimeStats().getDPSTicks().iterator();it.hasNext() && !foundIt;) {
DPSTick dpsTick=it.next();
//System.out.println("Tick second="+dpsTick.getStartSecond());
if(dpsTick.getStartSecond()<=i && (dpsTick.getStartSecond()+dpsTick.getSecondsDuration())>i) {
//System.out.println("Graph>"+i+" tick="+dpsTick.getDamageDone()/dpsTick.getSecondsDuration());
foundIt=true;
xys.add(new XYDataItem(i, dpsTick.getDamageDone()/dpsTick.getSecondsDuration()));
}
}
if(!foundIt)
xys.add(new XYDataItem(i, 0));
}