Description This command feeds hourly or daily usage data to PopChart Server so that you can graph it. The Administration Console automatically graphs this data for you in its Performance Charts, but you may use this command if you don't want to use the Administration Console.
For security reasons, you will need to specify a password using the @_PW command when trying to access the @_LOGGRAPH data.
PopChart Server keeps statistics on hourly hits over the past seven days. It also tracks of daily hits for the past 90 days. This data is kept in the logs folder of the PopChart Server root directory. Deleting the logs folder will effectively disable usage tracking.
In order for PopChart Server to graph this data, you will need to specify an appearance file using the @_FILE command in your server command string. The data is formatted for Time Line graphs, so the appearance file must contain at least one Time Line graph. You will also need to properly specify PCScript commands for the graph and data.
The data is available inside of PCScript via three macros:
The data lists are formatted for Time Line graphs (i.e. in the format time, hits, time, hits, etc.). These macros can be included anywhere in the PCScript, but you will probably want to place the data lists as the second argument to a graph.series() (link) command. For example, the following PCScript statement will send the hourly usage data to the series called Hour for the graph named graph:
graph.series(Daily Hits, PCSCript.hitsByDaySeries)
Time will be in the format %Y/%m/%d:%H (e.g. 1999/06/23:6) for both PCIS.hitsByHourSeries and PCIS.hitsByDaySeries. Thus, you must set the date input format appropriately. This can be done with the following graph.DateInputFormat (link) PCScript command: