item.configure(series);
}
private void addSecurityPerformance(DataSeries item, Security security, List<Exception> warnings)
{
PerformanceIndex securityIndex = (PerformanceIndex) dataCache.get(security.getUUID());
if (securityIndex == null)
{
securityIndex = PerformanceIndex.forInvestment(getClient(), security, getReportingPeriod(), warnings);
dataCache.put(security.getUUID(), securityIndex);
}
if (aggregationPeriod != null)
securityIndex = Aggregation.aggregate(securityIndex, aggregationPeriod);
ILineSeries series = chart.addDateSeries(securityIndex.getDates(), //
securityIndex.getAccumulatedPercentage(), //
item.getLabel());
item.configure(series);
}