Init figure.
Add stat figures.
Add index to popup.