• Resolved marcelocpires

    (@marcelocpires)


    hi Meitar

    I’m trying to hide the numbers that appear on the x axis and I am using the following:
    chart_h_axis= “no”

    the problem is that is not working, you can help me?

    I’m trying to hide the numbers that appear on the x axis and I am using the following:

    the problem is that is not working, you can help me?

    I’m having to do this because I am using the tabs-responsive plugin, the first tab the graph appears in the correct size but in the other tabs it is small and we can not see WHAT is written on the x axis.

    thank you

    https://ww.wp.xz.cn/plugins/inline-google-spreadsheet-viewer/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Meitar

    (@meitar)

    Where did you get chart_h_axis= "no" from? Look at the hAxis documentation for the chart type you are using provided by Google (here are docs for a Line Chart) to learn what options are available.

    Thread Starter marcelocpires

    (@marcelocpires)

    Hi
    I’m trying this code but it does not work out, what is wrong?
    h_axis_text_Style='{“color”: “#ffffff”}’

    Plugin Author Meitar

    (@meitar)

    h_axis_text_Style is not a recognized shortcode attribute, try chart_h_axis, as per the plugin’s documentation.

    Thread Starter marcelocpires

    (@marcelocpires)

    Hi Meiter.
    I tried to use these codes and not one works:
    chart_h_axis_textStyle='{“color”:”red”}’
    chart_h_axis='{“color”:”red”}’

    Also could not use this:
    sub_title:”sub titulo”

    I read the page that you indicated but unfortunately I could not, you can help me?

    Plugin Author Meitar

    (@meitar)

    You’re not understanding the documentation. chart_h_axis='{"color":"red"}' should be chart_h_axis='{"titleTextStyle": {"color": "#FF0000"}}', since, as the documentation on Google says, the hAxis option is “An object with members to configure various horizontal axis elements. To specify properties of this object, you can use object literal notation, as shown here…”

    In other words, hAxis.color is not a valid Google Charts API configuration option, it’s hAxis.titleTextStyle.color (or hAxis.gridlines.color or hAxis.baselineColor or whatever you’re trying to do), so the transformation in this plugin’s shortcode maps to the above, as shown.

    Thread Starter marcelocpires

    (@marcelocpires)

    Tks
    Tks
    Tks
    for your patience!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘hide’ is closed to new replies.