Support » Plugin: GoogleGraph » Y-axis does not display

  • Resolved koenvrancken

    (@koenvrancken)


    Hi,

    Thanks for all the (hard) work. But for some reason, the Y-axis is no longer displaying (I just upgraded to the latest version). It is filled with ‘Y’ (which is the default value). Also the color is set to default. Even if I use you example code (copied from your site).

    [columnChart  width="300px" stacked="1"
        vaxis="{title: 'in $000', titleTextStyle: {color: 'blue'}}"
        haxis="{title: 'Year', titleTextStyle: {color: 'blue'}}"]
            ['Year', 'Visitations', { role: 'style' } ],
            ['2010', 10, 'color: gray'],
            ['2010', 14, 'color: #76A7FA'],
            ['2020', 16, 'opacity: 0.2'],
            ['2040', 22, 'stroke-color: #703593; stroke-width: 4; fill-color: #C5A5CF'],
            ['2040', 28, 'stroke-color: #871B47; stroke-opacity: 0.6; stroke-width: 8; fill-color: #BC5679; fill-opacity: 0.2']
    [/columnChart]

    Thanks for your response.

    Koen

    https://wordpress.org/plugins/googlegraph/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author jvrtanoski

    (@jvrtanoski)

    Hi,
    The problem is in the splitting of the short code:

    [columnChart  width="300px" stacked="1"
        vaxis="{title: 'in $000', titleTextStyle: {color: 'blue'}}"
        haxis="{title: 'Year', titleTextStyle: {color: 'blue'}}"]

    in 3 rows, where in such case WordPress engine treats the “newline” character as part of the last attribute, therefore the information is lost.

    Please try by putting all of the code in the same line as follows:

    [columnChart  width="300px" stacked="1" vaxis="{title: 'in $000', titleTextStyle: {color: 'blue'}}" haxis="{title: 'Year', titleTextStyle: {color: 'blue'}}"]

    Please let me know where exactly you have seen the example so I can clarify there to avoid other users having similar problems.

    Thanks,

    Hi,

    Thank you for the quick response. This solves the problem (I also did some debugging, and if the rules are split the array is not filled correctly). The graph is now being displayed correctly.

    Thanks!
    Koen

    Plugin Author jvrtanoski

    (@jvrtanoski)

    Nice to know that I could help.
    Please don’t forget to rate the plug-in

    Regards,
    Jordan

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Y-axis does not display’ is closed to new replies.