Developer Function: Script: $p.events.on_analy_load
## Overview
This explains how to specify a method to be executed when the "[Analysis Chart](/en/manual/table-analy-chart)" is loaded or when the displayed content is changed by a filter, etc.
## Syntax
When setting up a script, be sure to check "Analysis Chart" in "Output Destination."
##### JavaScript
```
$p.events.on_analy_load= function () {
//Processing content
}
```
## Usage Example
If you set the following sample code to the Pleasanter script, a message will be displayed at the bottom of the screen when the analysis chart screen is loaded.
##### JavaScript
```
$p.events.on_analy_load = function () {
$p.setMessage('#Message', JSON.stringify({
Css: 'alert-success',
Text: 'The analysis chart has been loaded.'
})
);
}
```