Use Formit Submissions in a live graph

FormItSaveForm (database table modx_formit_forms) is not ideal to query the data, as all the form data is saved as JSON in the column values.

You probably have to loop through all the rows of the correct form (column form), decode the JSON and tally up the submissions.

Here is a link to some similar code, that you could adapt to your needs.