I want to add two or more timeSeries in order to generate stacked line graph. I could not find something in the API. I am trying to do it manually but still does not work as I want. Is there any function in the API, or not, that could manage this? Thanks
问问题
73 次
1 回答
0
好吧,这很有效^^
rtp:RegulatTimePeriod 实例。在遍历两个系列的数据集时,如果没有当前 rtp 的记录,我们使用此代码添加一个新节点,或者通过值的总和来更新现有节点。
if(StackedSerie.getValue(rtp)!=null){ //stacked lines dataset
StackedSerie.addOrUpdate(rtp,(double)((float)v + StackedSerie.getValue(rtp).floatValue()));
}
else
{
StackedSerie.add(rtp,v);
}
于 2015-06-19T08:53:43.153 回答