How does one go about displaying forms submission data metrics outside of the control panel?

metrics:
  -
    type: total
    label: Total Responses
  -
    type: sum
    field: field1
    label: Total Field1
    precision: 1
  -
    type: sum
    field: field2
    label: Total Field2
    precision: 1

I can get a total count of submission data with:

{{ form:submissions in="reserve-a-service" }}
{{ if last }}{{ total_results }}{{ /if }}
{{ /form:submissions }}

Is it possible to do the same with other metrics like in the cp? cp-metrics

Answered by Jonathan! Go to answer.