Google Charts API

Discussion in 'Programming' started by wwfc_barmy_army, Apr 2, 2010.

  1. #1
    Hello.

    There isnt' really a section for this, so hope here is ok.

    I've been trying Google Charts API and an been trying to use these figures:
    at the live chart playground:
    http://code.google.com/apis/chart/docs/chart_playground.html

    But it just has a line across the bottom axis. Can anyone spot where i'm going wrong?

    Thanks.
     
    wwfc_barmy_army, Apr 2, 2010 IP
  2. JimBeam451

    JimBeam451 Guest

    Messages:
    21
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This might be what you're looking for. I had to play with the display scale a little bit to get it right and you had an error with the labels

    cht=lc
    chs=600x250
    chdl=Monkeys
    chxt=y,x
    chxr=0,0,0.3|1,0,10
    chd=t:0.03,0.03,0.03,0.06,0.05,0.12,0.06,0.05,0.12,0.06,0.05,0.12,0.06,0.05,0.12,0.06,0.05,0.12,0.06,0.05,0.12,0.06,0.05,0.12,0.06,0.05,0.12,0.06,0.05,0.12
    chds=0,0.2
    Code (markup):
     
    JimBeam451, Apr 2, 2010 IP
  3. wwfc_barmy_army

    wwfc_barmy_army Well-Known Member

    Messages:
    122
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Spot on. Thanks!
     
    wwfc_barmy_army, Apr 3, 2010 IP
  4. JimBeam451

    JimBeam451 Guest

    Messages:
    21
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No problem. That was actually kind of fun - its been a while since I worked with that API :cool:
     
    JimBeam451, Apr 3, 2010 IP