# Matomo.GetImageGraph: Matomo Matomo tracking actions
Matomo.GetImageGraph: Matomo Matomo tracking actions
Render one reporting table as a PNG graph image.
Documentation
Wraps Matomo's ImageGraph.get - design chapter 6e's one binary-response table, exposed as a procedure rather than a SELECT-able table since a blob column of this shape has no precedent anywhere else in this driver's own declarative table registration, only in hand-written PSQL procedures (RecordHit, InvalidateArchivedReports) that already call the HTTP layer directly. api_module/api_action name the reporting table to graph, for instance VisitsSummary/get.Parameters of Procedure
The following parameters can be used to control the behaviour of the procedure `Matomo.GetImageGraph`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `begin package.procedure(value1, value2, value3); end` on a procedure with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `begin package.procedure(name1 => value1, name3 => value3); end` on the same procedure will use the default values for the second and fourth parameters and the specified values for the first and third.
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `id_site` | `int32` | ☑ | | Matomo site ID to graph. |
| `period` | `string` | ☑ | | The reporting period: day, week, month, year or range. |
| `dates` | `string` | ☑ | | The date the period is anchored on, or a range such as '2026-08-01,2026-08-31'. |
| `api_module` | `string` | ☑ | | The reporting plugin to graph, for instance 'VisitsSummary'. |
| `api_action` | `string` | ☑ | | The method of api_module to graph, for instance 'get'. |
| `graph_type` | `string` | ☐ | | Graph shape: 'evolution', 'verticalBar', 'pie' or '3dPie'. Matomo's own default applies when omitted. |
| `width` | `int32` | ☐ | | Image width in pixels. |
| `height` | `int32` | ☐ | | Image height in pixels. |