All shortcode parameters

All shortcode parameters

Here is the list of all shortcode parameters, briefly described, see examples for further explanations:

  • gf_form_id : expects the form ID in Gravity Forms (defaults to first form : id=1)
  • type : is the type of graph, at the moment only line,pie,doughnut,bar,horizontalBar,radar available (defaults to pie)
  • include : expects the field ids to include (example : include="1,3,4")
  • exclude : expects the field ids to exlude (example : exclude="2,4,6")
  • colors : to use your custom colors : a list of coma separated hex colors
  • color_set : expects the name of the color set : blue,green,red,orange,purple (defaults to a standard color set including different colors). See extended colors for more options.
  • color_rand : expects true or false and randomizes colors in color set if true (defaults to false)
  • height : set height of graph(s) in pixels (height="250px"), width will be adjusted automatically
  • position : (defaults to none) can be float (sets float:left property to graph div container, and allow multiple column display) or center (to center graphs inside container)
  • maxentries : by default, maximum 200 entries are retrieved from the gravity forms database, increase at your own risk (performances). Example here.
  • chart_js_options : JSON like string like : title: {display: true, text: 'My Funky Chart Title'}. Use to surround string parameters. See here for more informations, and there for some examples.
  • tooltip_style : Control tooltip content, SUM displays total count of answers, PERCENT the % ratio among all answers, and BOTH displays both
  • data_conversion : Set to “%” in order to convert in % all values. Previous parameter tooltip_style is disabled in this case.
  • case_insensitive : set it to “true” in order to count form answers values in a case insensitive way. For ex. : mYAnswer and myansWER will be count as same user answers.
  • custom_search_criteria : provide custom search criteria for gf submission query, for example custom_search_criteria='{"status":"active","field_filters":{"0":{"key":"created_by","value":"current"}}}'
  • no_entries_custom_message : custom message to show to user if no entries found
  • datasets_invert : Invert data set for survey add-on

Similar Posts:

About The Author

Comments (16)

  • Joe Black

    Custom Search Criteria – Filter by Field Values – conditional logic

    I need to display (conditional logic) results: display only if form field {email:3} entries equals current user’s username.
    I was trying something like this, but is not working (I was just guessing 🙂


    Thank you for your help

  • admin

    There is no conditional logic on showing the graph or not, it will always display unless there is an error.
    However, you can show answers for current user only by filtering like the example above :
    This will show stats for forms submitted by current user only.

  • Joe Black

    I did not explain myself correctly, sorry.
    I want the graph to show all the time, but only the values if they are from ”current” and the ”user_email” = form field {email:3}

    Thank you 🙂

  • Casper


    Could I have a bar chart with user input value in one bar and calculations in an other?

    Like bar #1 user input value
    bar #2 User input * 2
    Bar #3 user input * 4 – 3


    Awesome work mate!👍

    • Gravity Forms Charts Reports

      At the moment, no, it is not possible, but your suggestion is interesting and i will think about it quickly and go back to you.

    • Gravity Forms Charts Reports

      Can you explain a bit more what you want ? A text (number?) filed as input in the form ?
      Then calculations made on this only value entered by user ?

    • MaxiCharts

      Done here :

  • Jet0o

    I used gravityforms + survey addon + maxichart.
    On survey I have 4 answers for each question ((1)Very Happy / (2)Happy / (3)Angry / (4)Very Angry)
    On maxichart there randomly sorted the answers.. very angry or happy are sorted on first
    Question : How can I sorted the answers ? ( 1 / 2 / 3 / 4 ) not ( 4/2/1/3 )

    thank you

    • MaxiCharts

      Hi @jet0o
      You mean that maxicharts should just display answers in the same order as each question inside corresponding field, right ?
      You are totally right, that seems quite a bug !
      Thanks for your feedback, we’ll come back to you here after fix.

  • gerian


    I am creating a Pie Chart and the Segment Labels appear in random order (similar to above problem). Is there a shortcode to remove this or is this a bug? My chart corresponds with a colour scale, so I cannot have the colours randomly matched to segment labels…. how can I fix this?

    • MaxiCharts

      Hi @gerian,
      Can you please provide the URL to the page concerned and the shortcode you are using ?
      Also make sure you updated to lastests versions of MaxiCharts

  • gerian

    midway down the page there is a pie chart. You will notice if you refresh page a few times, it will randomly and unexpectedly change the ordering of the colors / segment labels

    • MaxiCharts

      I refreshed about 10x the page and the colors are always : red : medium, black :soft, yellow : firm.
      Do you see something else ?

      • gerian

        Try this page, it has the same chart. If you refresh, it will constantly randomize the colours & segments. I do have the latest version of maxi charts, as far as I know. I have set the short code parameter color_rand=”false” if that has anything to do with it…. but it has not helped.

        I really like this chart, would be a shame to not be able to display it.. any help would be appreciated.

        Thank you

        • MaxiCharts

          Sorry Gerian, i hadn’t seen your answer.
          No chart displayed on the page now…

Leave Comment