Controller::format_data_value( array $data, string $stat, string $report, string $chart, array $query_args )
Format the data returned from the API for given stats.
Description Description
Parameters Parameters
- $data
-
(Required) Data from external endpoint.
- $stat
-
(Required) Name of the stat.
- $report
-
(Required) Name of the report.
- $chart
-
(Required) Name of the chart.
- $query_args
-
(Required) Query args.
Return Return
(mixed)
Source Source
File: packages/woocommerce-admin/src/API/Reports/PerformanceIndicators/Controller.php