Google API notes

From Helpful
Jump to: navigation, search
This hasn't been updated for a while, so could be outdated (particularly if it's about something that evolves constantly, such as software).

Google Chart API

This article/section is a stub — probably a pile of half-sorted notes, is not well-checked so may have incorrect bits. (Feel free to ignore, fix, or tell me)

Max URL length - ~2048 imposed by some browsers (see also notes like URL#URL_length) Using POST seems to be limited to 16KB of data.

Rounding/truncate numbers as much as is sensible. There are also some

Data formats:

  • t: Lists of text, often simplest to feed in
    • Example:
  • s: (one-character-per-int string format for 0..61)
    • values 0—61 represented by
      (in that order) and
      representing a missing value
    • If you don't need much display resolution, this is the most compact
    • Example:
      (equivalent to the t: example above)
  • e: (extended string coding; two-character-per-int string format, for 0..4095
    • like the basic coding, but with two characters per data point, capable of coding 0-4095
    • values 0-63 coded by
      (in that order),
      representing a missing value.
    • e.g.
      means 0,
      is 62,
      is 64,
      means 4095
    • Example:
      (equivalent to t:90,1000,2700,3500</span>

Chart size, <tt>chs=

  • pixel size

Chart type, chs=



See also: