Support » Plugin: GoogleGraph » Max value to display on graph for h axis

  • Resolved sunnyd121

    (@sunnyd121)


    Hi, I would only like to display a max value of 3 (currently showing to 4 even though my max is 3) on my bar graph. Here is what I have, i’ve tried multiple max value texts but no luck.

    [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]

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

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

    sunnyd121

    (@sunnyd121)

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Max value to display on graph for h axis’ is closed to new replies.