Handling the dot notation from Charts API
-
Hi.
I’m wanting to set an attribute to a value that there is no direct shortcode parameter for: vAxis.minValue. I see chart_v_axis, so I need to qualify it further, somehow.
Drawing from another answer you gave, you offered:
You probably want chart_h_axis=”{slantedText: true}”, since there is no hAxis.slantedText attribute for shortcodes.
I tried
chart_v_axis='{"minValue": 0}' chart_v_axis='{"minValue": "0"}' chart_v_axis='{minValue: 0}' chart_v_axis="{minValue: 0}"
The first two just don’t work. The last two give errors.
On this page, the bottom graph uses the first one above, which seems to be the most likely solution to me. Minimum v axis is -40, not 0, as desired.
https://test.edkatzman.com/index.php/2017/01/13/line-graph/
What’s the correct syntax for these dot properties?
Thanks.
- The topic ‘Handling the dot notation from Charts API’ is closed to new replies.