Group several fields on one graph

Group several fields on one graph

How it works?

  • group_fields will first check that all include fields are of the same type. Then get value of each (only works with number fields at the moment) to create a new dataset. Result is a graph with one dataset per field. Need to create custom title
  • gf_entry_id will select a specific entry based on its unique id, if last set, will get the latest filled form (in time). You can use GF merge tag in order to show current user answer on confirmation page: gf_entry_id="{entry_id}". Submit to see result on confirmation.

The form

Grouped fields with uncomputed values

[gfchartsreports color_set="set1" count_answers="1" chart_js_options="title: {display: true, text: 'My Custom Title'}" gf_form_id="16" gf_entry_id="last" group_fields="1" include="1,2,3" type="bar" height="400px" custom_search_criteria='{"status":"active","field_filters":{"0":{"key":"created_by","value":"current"}}}']

About The Author

Comments (5)

  • j.aquilina

    Did you just do this today?

    • MaxiCharts

      Well yes the post was published today. Is this what you need ?

  • j.aquilina

    Trying to work it out 🙃

  • j.aquilina

    I’m as well as my brain, I missing something i’m getting “No data available for fields”
    either using this
    [gfchartsreports gf_form_id="84" group_fields="1"  include="57,58,59,60,61,62,63,64" gf_entry_id="last" type="pie" color_set="blue" color_rand="0" height="400" tooltip_style="PERCENT" position="center" case_insensitive="0" filter="0"/]

    or

    this

    [gfchartsreports gf_form_id="84" group_fields="1"  include="{Linguistic Total:57},{Musical Total:58},{Logical/Mathematical Total:59},{Visual/Spatial Total:60},{Kinesthetic Total:61},{Intrapersonal Total:62},{Interpersonal Total:63},{Naturalist Total:64}" gf_entry_id="last" type="pie" color_set="blue" color_rand="0" height="400" tooltip_style="PERCENT" position="center" case_insensitive="0" filter="0"/]

    • MaxiCharts

      Hi,
      Can you please send your exported form (.json file) using our contact form ?
      Thanks

Leave Comment