• Resolved wvnutt

    (@wvnutt)


    Hello! I’m attempting to manage the ticks on my column chart (see vAxis.ticks), but the shortcode will not take double-digit numbers. Instead, it reads each individual digit as a tick mark. For example, this code renders ticks at 1, 2 and 3 rather than 10, 20 and 30.

    chart_v_axis='{"ticks":"10, 20, 30"}'

    I’ve tried many variations of commas and curly brackets but to no avail.

    Please advise!

    • This topic was modified 7 years, 7 months ago by wvnutt.
Viewing 1 replies (of 1 total)
  • Plugin Author Meitar

    (@meitar)

    That’s because you’re passing a string, not integers. The Google Documentation reads

    vAxis: { ticks: [5,10,15,20] }

    This is clearly different than what you’ve done. You should try

    chart_v_axis='{"ticks": %5B 10, 20, 30 %5D}'

    instead.

Viewing 1 replies (of 1 total)
  • The topic ‘Google Chart Tick Marks’ is closed to new replies.