Support » Plugin: WP Survey And Quiz Tool » Spacing/ text size on graph results an issue

Viewing 5 replies - 1 through 5 (of 5 total)
  • Alan Taylor

    (@alan-taylor)

    I’m having the exact same issue – is there a fix for this? I set the graph spacing to 800px and everything is still in the 200px space and squashed. Changing the text size hasn’t helped either.

    thecookiemonster

    (@thecookiemonster)

    Nah I haven’t been able to find a fix. Hopefully a Dev checks in and helps out.

    drew

    (@drewdrewchristophercom)

    drew

    (@drewdrewchristophercom)

    Looking at the code, the developer used Google Charts. If you copy one of your graph .gif files you can inspect the parameters here:
    https://developers.google.com/chart/image/docs/chart_playground

    After spending a little time, I resolved the text issue by replacing the chl to a chdl. The text originally was too large for the maximum size of the graph (440×220) so now it is displayed to the left:
    http://www.drewchristopher.com/images/code-fix.jpg

    You can fix the text issue by opening the result.total.common.php
    Find:
    $googleChartUrl .= ‘&chl=’.implode(‘|’,$nameArray);

    and replace it with:
    $googleChartUrl .= ‘&chdl=’.implode(‘|’,$nameArray);

    After this change, I also decided to change the colors of the graphs. You can use this site to find hexadecimal colors: http://www.w3schools.com/tags/ref_colorpicker.asp

    If you decide you want to change the color of the graphs, again open the result.total.common.php file and find
    $chartColour=’FF0000′ and add additional hexi-decimal colors using a | to separate colors.
    Example: $chartColour=’6699FF|FF99FF|9933FF|FF0066|0000FF|000000′;

    Hope this helps!

    thecookiemonster

    (@thecookiemonster)

    Thank you very much for this!
    Worked perfectly on my side.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Spacing/ text size on graph results an issue’ is closed to new replies.