Forum Replies Created

Viewing 15 replies - 1 through 15 (of 35 total)
  • Forum: Plugins
    In reply to: [GoogleGraph] Bar chart
    Plugin Author jvrtanoski

    (@jvrtanoski)

    Hi,
    You need to have the [barChart] tag with al it’s attributes in one line without a new-line between the attributes in the shortcode. Basically, WordPress parser is confused with the new-line between “[” and “]”. So try replacing firs 4 lines with this line:

    [barChart width=”500px” legend=”{ position: ‘top’, maxLines: 2 }” vaxis=”{title: ‘in $000’, titleTextStyle: {color: ‘blue’}}” haxis=”{title: ‘Year’, titleTextStyle: {color: ‘blue’}}”]

    Let me know if this helps.
    Jordan

    Plugin Author jvrtanoski

    (@jvrtanoski)

    Hi,
    I can notice a problems with your code: the colors should be specified in quotes: ‘black’ or ‘white’, while in your case the color white is written without quotes. This causes Google’s chart JavaScript to try to interpret it as a variable instead as a name of the color.

    Plugin Author jvrtanoski

    (@jvrtanoski)

    Hi, I am not sure that I can fully understand your problem, however please first try to remove the “new lines” between the attributes in the barChart tag. WordPress framework is confused when there is a new line inside the tag. The new line in the nested tags is ok. I have modified your example as follows:

    [barChart width=”500px” stacked=”1″ legend=”{ position: ‘top’, maxLines: 0 }” vaxis=”{title: ‘Category’, titleTextStyle: {color: ‘blue’}}” haxis=”{title: ‘Level (1-Lowest to 3-Highest)’, titleTextStyle: {color: ‘blue’}}”]
    [‘Level’, ‘Level’, { role: ‘style’ } ],
    [‘Task Difficulty’, 1, ‘color: gray’],
    [‘Competition’, 2, ‘color: #76A7FA’],
    [‘Award’, 3, ‘opacity: 0.2’],
    [/barChart]

    so, as you can se I keep all attribbutes of the [barChart] in the same line. Please try this, and if this is not working, please share some example how you want the chart to look like and I will try to help you.

    Plugin Author jvrtanoski

    (@jvrtanoski)

    Thanks for the tip, I will plan this for our next release

    Plugin Author jvrtanoski

    (@jvrtanoski)

    Hi,
    The problem is with the “new line” in the middle of the short code. The short code [lineChart] (or any other short code in WordPress) shouldn’t contain a “new line” between the opening bracket “[” and closing bracket “]”.
    Therefore, in order for the example to work, just remove the new lines before the “legend”, “vaxis”, “haxis” and “curvetype” tags.

    Fill free to ask any further question or share any suggestions, and please don’t forget to rate the plugin ??

    Plugin Author jvrtanoski

    (@jvrtanoski)

    Hi,
    Happy new year,

    1. Just use the “legend” attribute of the short code. If you don’t want any legend to appear set the attribute to empty hash (legend=”{}”).

    2. The geo chart has special data format which google library expects. The chart base several modes of display, but the main display modes are “markers” and “regions”. This is controlled by the “displayMode” attribute of the short code. Default value is “markers”.
    In case of markers, the following columns are expected:
    Column 1: Marker location (city, country, region, etc.)
    Column 2: Color of the marker, as percentage of the gradient colour set up by “colorstart” and “colorend”
    Column 3: Marker size (radius of the marker)

    Unfortunately, geochart library doesn’t allow control of the colours for each data in a manner in which this is allowed by Pie Chart or Bar Chart, however carful planning of colourstart/colourend and use of the column 2 can help a lot to create interesting charts.

    I hope this will help. Let me know if you have any other questions or suggestions for future improvements. Please don’t forget to rate the plugin

    Thanks
    Jordan

    Plugin Author jvrtanoski

    (@jvrtanoski)

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

    Regards,
    Jordan

    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,

    Plugin Author jvrtanoski

    (@jvrtanoski)

    I will add this in the list for the next release of the plugin

    Plugin Author jvrtanoski

    (@jvrtanoski)

    Make sure all the plug-ins are installed and configured as in this screen
    https://tinypic.com/r/24g6l34/8

    Plugin Author jvrtanoski

    (@jvrtanoski)

    Here is the example from my server
    This is the post: https://tinypic.com/r/dqrc0m/8

    And this is the result
    https://tinypic.com/r/o8f5lv/8

    Plugin Author jvrtanoski

    (@jvrtanoski)

    ?? ?? ?? Ok, this time you are missing the “/” at the end. Structure of a short code is:

    Try to put this in the text

    [phpLeagueGraphPerTeam/]

    This should work

    Plugin Author jvrtanoski

    (@jvrtanoski)

    I just had spotted the error. You have mistyped the short code.
    the short code is “phpLeagueGraphPerTeam” not “phpLeagueGraphforTeam”

    Plugin Author jvrtanoski

    (@jvrtanoski)

    can you give me your server’s URL (address)?

    Plugin Author jvrtanoski

    (@jvrtanoski)

    Yes, you need to install PHPLeague as well, otherwise will not work.

Viewing 15 replies - 1 through 15 (of 35 total)