13,197,527 members (27,616 online)
Tip/Trick
alternative version

#### Stats

23.5K views
11 bookmarked
Posted 22 Jan 2011

# Google Charting API and Formula Imaging

, 3 Oct 2011
 Rate this:
Use Google APIs to create Graphical Formulas

## Editorial Note

Having trouble writing or posting articles? These articles aim to gather together tips and tricks from authors and mentors to help you write great articles.

Update: 3rd Oct, the link to the chart playground should now work after Google appeared to have moved things around, if it breaks again, just visit code.google.com, and go to the charting section.

Recently I wrote an article and it used some formula, and had the formula shown in text format which ends up with the likes of the following;
α = 2Atan( H1 / ( √(((2H1D)/2)-H12)))

I am sure you would agree that it doesn't look very pretty. I wanted to turn this into something more presentable.

In the end, I came across Google Chart Tools / Image Tools here[^], which use the TeX notation for building graphical representations on formula.

A little more hunting and I found a useful cheat sheet for TeX Notation here[^]

Putting things together, you can then save the outputed image for your local use. Here is the example from the above in text linked directly to the Google API:

The API construct for this is:
cht=tx
chl=\alpha=2Atan{\HUGE[}\frac{H_{1}}{\sqrt((\frac{2H_{1}D}{2})-H_{1}^2)}{\HUGE]}

## Share

 Engineer Scotland
I have been working in the Oil & Gas Industry for over 25 years now.

Core Discipline is Instrumentation and Control Systems.

Completed Bsc Honours Degree (B29 in Computing) with the Open University in 2012.

Currently, Offshore Installation Manager in the Al Shaheen oil field, which is located off the coast of Qatar.

Prior to this, 25 years of North Sea Oil & Gas experience.

## You may also be interested in...

 First Prev Next
 Reason for my vote of 5 Cool :-) raja_krish8-Jun-11 6:05 raja_krish 8-Jun-11 6:05
 Reason for my vote of 5 Very useful. Lokanta_brahmachari25-Jan-11 4:30 Lokanta_brahmachari 25-Jan-11 4:30
 Reason for my vote of 5 Great simple summary of a service I ... Phil Martin...23-Jan-11 12:45 Phil Martin... 23-Jan-11 12:45
 Re: I recently started poking around http://code.google.com, sur... DaveAuld23-Jan-11 19:12 DaveAuld 23-Jan-11 19:12
 Last Visit: 31-Dec-99 18:00     Last Update: 20-Oct-17 20:33 Refresh 1