I am wondering how to customize a Bar Graph using the possibilities of the text based .vgd-files as needed in order to achieve the following:
- The model will run at a Time Step significantly smaller than some reporting period (e.g. reporting period is a year for annual reporting and Time Step is a fraction of a year).
- In order to show reported values, as they might appear in accounting, those flows are integrated within a rolling time frame of one year (e.g. applying Delay Fixed ); the accounting values to be shown in a model based report are then given by a Sample If True - structure so as to ensure that values are taken when the end of any year is reached.
- These annually sampled values shall then be output in a Bar Graph for each year ended such that the year appears ideally below the vertical bars showing the values
While this kind of chart output is very typical for an accounting view and spreadsheet data I am very much struggling to achieve anything like it in Vensim. If I simply take the variable and have it output by the Bar Graph tool over time the annually sampled values will be shown at each time step so that a year will be represented by (1/Time Step) different bars rendering this kind of presentation absolutely useless for smaller time steps needed to achieve a decent model accuracy.
The closest approach I have come up with is using a vgd-file-based definition like the following:
Code: Select all
:BAR-GRAPH accountingFlow
:TITLE Reported Flow by year ended
:VAR accountingFlow { this is a sampled variable for the year ended }
:BAR-TIME 1
:BAR-VAR-TIME
:VAR accountingFlow
:BAR-TIME 2
:BAR-VAR-TIME
...
How can these kind of Bar Graph presentations be achieved in Vensim?
Best regards,
Guido
PS: For completeness, aggregating accounting flows for reporting has previously been addressed here
http://www.ventanasystems.co.uk/forum/v ... ted#p16703