Форум

Hi, I want to dynamically add a data item to a bar during execution. I use the syntax barChart.addDataItem( uAV.get(0).total_time, "LB-Launching", silver); but I get the error " method addDataItem(DataItem, String, color) is not applicable to argument (double,String,color). Thats strange because the "uAV.get(0).total_time" is exactly what I entered manually into the "value"-field of the bar chart before running the sim and it works fine. So where is the difference between dataItem and value, what exactly is a dataitem and how can I create one? thanks a lot in advance Ben
Hi Ben, The detailed information about DataItem class can be found in AnyLogic Help in API reference section.

Ваше сообщение