• Resolved wprookiekris

    (@wprookiekris)


    I’m trying to create a connected bar chart (2 data types next to each other) but the example short code is creating it in a stacked format. Is there a parameter I’m missing?

    [barChart  width="500px"
        legend="{ position: 'top', maxLines: 2 }"
        vaxis="{title: 'in $000', titleTextStyle: {color: 'blue'}}"
        haxis="{title: 'Year', titleTextStyle: {color: 'blue'}}"]
            ['Year', 'Sales', 'Expenses', 'cost'],
            ['2004', 1000, 400, 25],
            ['2005', 1170, 460, 50],
            ['2006', 660, 1120, 60],
            ['2007', 1030, 540, 80]
    [/barChart]

    https://ww.wp.xz.cn/plugins/googlegraph/

Viewing 1 replies (of 1 total)
  • 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

Viewing 1 replies (of 1 total)

The topic ‘Bar chart’ is closed to new replies.