Support » Plugin: Gravity Forms Charts Reports » Date Range not working and multiple graphs of same form?

  • Resolved Luke Williamson

    (@luke-williamson)


    Hi there, I have 2 questions regarding this plugin (which is great by the way!):

    1. I’m trying to make my graph display certain data of entries within a certain timeframe, based off your shortcode examples I came up with this but it still doesn’t work:
    [gfchartsreports gf_form_id=”5″ include=”11″ type=”pie” width=”100%” color_set=”blue” custom_search_criteria='{“start_date”:”03/13/2017″,”end_date”:”03/20/2017″}’]

    I’ve also tried every kind of date format and I’m unsure which one is suppose to be accepted.

    2. I’m also trying to add multiple charts on the same page, based off the same form and form field, just displaying the data from a different date range. But even when I try to add a duplicate of the form’s working chart, the duplicate doesn’t display on the page. Would you be able to come up with a fix for that?

    Thanks again for a great plugin!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author termel

    (@munger41)

    Hi,

    1. Have you tried to add : $search_criteria['status'] = 'active'; as well ? the date format to use will be the date format gravity forms accepts, as the JSON string is passed to GF.
    2. Which version of GFCR are you using ? Can you please copy paste your shortcode here ?

    Hi thanks for replying so soon.

    1. Here’s my search criteria added to the shortcode without any luck:
    [gfchartsreports gf_form_id="5" include="11" type="pie" width="100%" color_set="blue" custom_search_criteria='{"status":"active","start_date":"03/13/2017","end_date":"03/20/2017"}']

    2. I’m using Gravity Forms 2.1.2

    My shortcode I tried was: [gfchartsreports gf_form_id=”5″ include=”11″ type=”pie” width=”100%” color_set=”blue” custom_search_criteria='{“start_date”:”03/13/2017″,”end_date”:”03/20/2017″}’]

    Plugin Author termel

    (@munger41)

    1. Be very carefull with double quotes, you have to use the exact same type everywhere, i will test it and come back to you asap
    2. i was asking the version of this plugin, because a bug like this have been fixed in v2.4. Again, double check the quotes you use for shortcode parameters.
    Plugin Author termel

    (@munger41)

    Here is GF date format to use:

    $start_date = date( 'Y-m-d', strtotime('-30 days') );
    $end_date = date( 'Y-m-d', time() );
    Plugin Author termel

    (@munger41)

    I’ve just been using the following test shortcode successfully : [gfchartsreports color_set="blue" float="true" include="1" type="bar" width="48%" custom_search_criteria='{"start_date":"2016-10-12","end_date":"2017-12-01"}']

    Can you try with this syntax ?

    Hi thank you so much!

    It turns out I needed to update Gravity Forms and your plugin to the latest version for this syntax to work! 🙂

    Also what would I put in the shortcode to get just the last 7 days of data in the graph? As this value would be dynamic and would change each day.

    Plugin Author termel

    (@munger41)

    Also what would I put in the shortcode to get just the last 7 days of data in the graph? As this value would be dynamic and would change each day.

    This is not possible at the moment… I close this thread and you can add a new one asking for this feature please ?
    Thanks

    Plugin Author termel

    (@munger41)

    closed

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Date Range not working and multiple graphs of same form?’ is closed to new replies.