Support » Plugin: Gravity Forms Charts Reports » Add percentage instead of numbers in bars charts

  • Resolved Rui Cruz

    (@ruicruzpt)


    If you can add a shortcode option for like this for percentage OR remove the lines it would be perfect also for bars (as it is now for pie charts).

    This could be a good improvement as many users does not want to show up the number of reply’s bur rather a 100% chart and the number of anwsers to the 100% (total sun of all anwsers).

Viewing 12 replies - 1 through 12 (of 12 total)
  • I would also like to know this.

    Thanks!

    Plugin Author termel

    (@munger41)

    Yes, noticed, but this seem to be a bot more complicated, as i have to transform dataset into %, before sending to graph… need more time for that.

    Plugin Author termel

    (@munger41)

    Hi guys, please update to 2.5.3 in order to use (test actually! ) this new feature with parameter data_conversion="%"
    Cheers!

    Plugin Author termel

    (@munger41)

    Anybody had time to test this ?

    Hi,

    Sorry for the delay.

    I’ll have time only in sunday and I’ll report back here when I do the tests.

    Rui

    Plugin Author termel

    (@munger41)

    Thank you very much Rui

    Hi there,

    If I add that to my 3 test forms I get some errors.

    Here they are:

    Warning: Illegal string offset 'scores' in /home/linkspt/public_html/stage1/wp-content/plugins/gf-charts-reports/gfcr_data_conversion_plugin.php on line 39
    
    Warning: array_sum() expects parameter 1 to be array, string given in /home/linkspt/public_html/stage1/wp-content/plugins/gf-charts-reports/gfcr_data_conversion_plugin.php on line 20
    
    Warning: Invalid argument supplied for foreach() in /home/linkspt/public_html/stage1/wp-content/plugins/gf-charts-reports/gfcr_data_conversion_plugin.php on line 22
    
    Warning: Illegal string offset 'scores' in /home/linkspt/public_html/stage1/wp-content/plugins/gf-charts-reports/gfcr_data_conversion_plugin.php on line 39
    
    Warning: Illegal string offset 'scores' in /home/linkspt/public_html/stage1/wp-content/plugins/gf-charts-reports/gfcr_data_conversion_plugin.php on line 39
    
    Warning: array_sum() expects parameter 1 to be array, string given in /home/linkspt/public_html/stage1/wp-content/plugins/gf-charts-reports/gfcr_data_conversion_plugin.php on line 20
    
    Warning: Invalid argument supplied for foreach() in /home/linkspt/public_html/stage1/wp-content/plugins/gf-charts-reports/gfcr_data_conversion_plugin.php on line 22
    
    Warning: Illegal string offset 'scores' in /home/linkspt/public_html/stage1/wp-content/plugins/gf-charts-reports/gfcr_data_conversion_plugin.php on line 39
    
    Warning: Illegal string offset 'scores' in /home/linkspt/public_html/stage1/wp-content/plugins/gf-charts-reports/gfcr_data_conversion_plugin.php on line 39
    
    Warning: array_sum() expects parameter 1 to be array, string given in /home/linkspt/public_html/stage1/wp-content/plugins/gf-charts-reports/gfcr_data_conversion_plugin.php on line 20
    
    Warning: Invalid argument supplied for foreach() in /home/linkspt/public_html/stage1/wp-content/plugins/gf-charts-reports/gfcr_data_conversion_plugin.php on line 22
    
    Warning: Illegal string offset 'scores' in /home/linkspt/public_html/stage1/wp-content/plugins/gf-charts-reports/gfcr_data_conversion_plugin.php on line 39

    Also, I try 100% instead of % and got the same thing.

    Here is my sample codes:

    [gfchartsreports color_set="purple" color_rand="true" type="bar" include="1" data_conversion="100%" width="70%" chart_js_options="title: {display: true, text: 'O Nuno vai ficar impressionado', fontSize:28,fontFamily:'Arial',fontColor:'#00B88A',fontStyle:'bold',padding:20}"]
    
    [gfchartsreports color_set="purple" color_rand="true" data_conversion="100%" type="line" include="1" width="70%" chart_js_options="title: {display: true, text: 'My Custom Arial Title', fontSize:28,fontFamily:'Arial',fontColor:'#00B88A',fontStyle:'bold',padding:20}"]
    
    [gfchartsreports color_set="red" color_rand="true" type="bar" data_conversion="100%" include="1" width="70%" chart_js_options="title: {display: true, text: 'My Custom Helevetica Title', fontSize:18,fontFamily:'Helevetica',fontColor:'#FF3366',fontStyle:'bold',padding:10}"]

    Do you get the same result as I do?

    Plugin Author termel

    (@munger41)

    Hi Rui,
    Thanks for testing.
    First, the data_conversion parameter should be used with % only.
    I fixed a little thing, can you please uninstall/reinstall the plugin and test again ?

    Hi,

    Not sure what I’m doing wrong, but that does not give me the percentage yet.

    I reinstall with the last update.

    The code I’m using is:

    [gfchartsreports color_set="purple" color_rand="true" type="bar" include="1" data_conversion="%" width="70%" chart_js_options="title: {display: true, text: 'O Nuno vai ficar impressionado', fontSize:28,fontFamily:'Arial',fontColor:'#00B88A',fontStyle:'bold',padding:20}"]
    
    [gfchartsreports color_set="purple" color_rand="true" data_conversion="%" type="line" include="1" width="70%" chart_js_options="title: {display: true, text: 'My Custom Arial Title', fontSize:28,fontFamily:'Arial',fontColor:'#00B88A',fontStyle:'bold',padding:20}"]
    
    [gfchartsreports color_set="red" color_rand="true" type="bar" data_conversion="%" include="1" width="70%" chart_js_options="title: {display: true, text: 'My Custom Helevetica Title', fontSize:18,fontFamily:'Helevetica',fontColor:'#FF3366',fontStyle:'bold',padding:10}"]
    Plugin Author termel

    (@munger41)

    Can you please do the following :

    1. make sure your have the last version of plugin
      • make sure the line 57 'level' => 'debug' is present in file, if other value than debug, set it to debug.
      • refresh the page were the display fails
      • send me the log file under logs/gfcr-YYYY-MM-DD.log

    Thanks!

    Sorry for the delay.

    This has been solved! Thank you.

    Plugin Author termel

    (@munger41)

    Oh great ! thanks for the feedback Rui

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Add percentage instead of numbers in bars charts’ is closed to new replies.