Warning: Unresponsive script

When I put a second graph onto the dashboard I get this warning. I’ve changed the variable to see if that was the problem but no luck. When I ask it to debug the script the graph appears but when I run it again I get the same warning

Hi David,

We took a look at your simulation. The issue is that the model has 780 time steps (more than can be viewed in the graph), and the page takes too long to process all the data. (It’s processing data for that chart and the other variables used in the sim).

You can improve performance by specifying a “reportPer” in the Forio model config file. This returns data in less frequent increments which can substantially improve performance. The model name must be the exact same name as your Vensim model (capitals and all) but with “cfg” at the end instead of “cmf”. For example if your model is MyModel.vmf, the config file would be MyModel.cfg.

We suggest putting this inside the config file. I’m assuming your model is in weeks. This would include data from 0 to 780 every 13 weeks for every reported variable in the model

{
    "model": {
        "reportPer": 13
    }
}

More information is in our docs. You can also specify this on a per variable basis.
https://forio.com/epicenter/docs/public/model_code/context/

WILL