[6.x] Forms 2: Visualize Responses - #14928
Open
jaygeorge wants to merge 139 commits into
Open
Conversation
...and convert them to TypeScript 👀
jasonvarga
marked this pull request as draft
August 26, 2026 17:19
duncanmcclean
marked this pull request as ready for review
August 28, 2026 16:10
duncanmcclean
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request implements a Summary view for form submissions — charts and insights that visualize responses without needing to export them.
The whole feature is only available when the
statamic/forms-proaddon is installed.The Summary view
A toggle at the top of the submissions listing switches between the Submissions and Summary views. Each chartable field gets its own chart widget, and any filters or search applied to the listing narrow the summary too.
You may switch between percentages and response counts using a toggle at the top left. You can also toggle field numbering beside it.
Charts
Statamic ships with five chart types:
The base
Chartclass does some heavy lifting inprops():$limit(4 pie segments, 5 bar/lollipop rows) is grouped into an "Other" item. Pie charts implementdrilldownProps()so clicking the Other segment drills into a breakdown of what's inside it.Customizing the layout
Users who can configure the form will see a Customize Charts button where they can add charts, reorder charts or switch a chart's type (any chart may be used with any field), and remove charts.
The layout is saved to the form itself, so everyone sees the same summary. A form that hasn't been customised shows every chartable field with its default chart.
Extension points
FormFieldtype:defaultChart(),chartOptions(Collection $values)(the full set ofChartOptions answers are counted against — supporting labels, icons, images and badges), andinsights().app/FormCharts/app/FormInsights. Addons can useFormCharts/FormInsightsfolders, or the$formCharts/$formInsightsservice provider properties.$componentproperty) receives the output ofprops()plusmetricandaccessibleLabelprops, and asummaryslot containing the field's insights. The core chart components (PieChart,HorizontalBarChart,VerticalBarChart,HorizontalLollipopChart) are exported from@statamic/cms/uifor addons to build on.