Plugin Author
Meitar
(@meitar)
chart_h_axis_format is not a recognized attribute.
From the Google documentation:
You can control the formatting of label numbers with hAxis.format and vAxis.format. For instance, {hAxis: { format:'#,###%'} } displays the values “1,000%”, “750%”, and “50%” for values 10, 7.5, and 0.5.
And from this plugin’s FAQ:
Some configuration options call for an Object value. For these, the shortcode attribute value should be a JSON object.
So, putting the two together, you probably meant:
chart_h_axis='{"format":"$#,###"}'
Thanx for the answer. However the code you provided is not working either 🙁
Plugin Author
Meitar
(@meitar)
Right above the button you pressed to post this message, this forum asks you:
Did you include a link to your site, so that others can see the problem?
Sorry for that. Here is the link to the particular table:
http://letstradetogether.com/overall-results/
Plugin Author
Meitar
(@meitar)
When I use chart_h_axis='{"format":"currency"}', it works for me.
Not working either, this is my whole code that I am using
[gdoc key="LINK TO SHEET" chart="Line" title="Total equity from November 16, 2015" chart_height="450" chart_h_axis='{"format":"currency"}']
Plugin Author
Meitar
(@meitar)
On the page you linked, the output of your shortcode is:
<div data-chart-height=”450″ data-datasource-href=”https://docs.google.com/spreadsheets/d/1K9g-CeUog8zoyLOlqT9wrGl_ENfp6_j37eM4aspml2E/gviz/tq?tqx=out:csv&tq=&gid=406913227&chart=true” data-chart-type=”Line” title=”Total equity from November 16, 2015″ class=”igsv-chart” id=”igsv-0-Linechart-1K9g-CeUog8zoyLOlqT9wrGl_ENfp6_j37eM4aspml2E”>
Note that there is no data-chart-h-axis attribute. So I must conclude that you have not actually tried adding the attribute to the shortcode, or there is a cache active on your site that loads old versions of your pages. (You’ll probably want to disable that, if so.) The bottom line, when I add the chart_h_axis attribute as I describe, it does work; the horizontal access is formatted with the currency of the browser’s locale.
I really put it there. I don’t know why it is not working. I cleared my cache several times.
This is the pic from my wordpress:
http://postimg.org/image/4gqx7dzr5/
Plugin Author
Meitar
(@meitar)
Like I said, I can’t reproduce that issue. The shortcode works for me using your Sheet data.
Ok, thank you for the effort Meitar.