A drop-in replacement for the Google Charts API text formula rendering service
Original Google Charts URL:
https://chart.googleapis.com/chart?cht=tx&chl=f(x) = \sum_{n=0}^{\infty} a_n x^n
Replacement URL (this server):
https://google-charts-formulas.vercel.app/chart?cht=tx&chl=f(x) = \sum_{n=0}^{\infty} a_n x^n
Result:
Formula without any delimiters - MathJax handles it correctly
https://google-charts-formulas.vercel.app/chart?cht=tx&chl=E=mc^2
Result:
Formula with inline math delimiters
https://google-charts-formulas.vercel.app/chart?cht=tx&chl=\(f(x)%20=%20\sin(x)\)
Result:
Formula with display math delimiters
https://google-charts-formulas.vercel.app/chart?cht=tx&chl=$$\int_{a}^{b}%20f(x)%20dx$$
Result:
Formula with single dollar signs - delimiters are removed
https://google-charts-formulas.vercel.app/chart?cht=tx&chl=$x^2%20+%20y^2%20=%20z^2$
Result:
Text with currency symbol - dollar sign escaped with backslash
https://google-charts-formulas.vercel.app/chart?cht=tx&chl=\text{The cost is }\$5.00
Result:
A more complex equation with fractions and multiple elements
https://google-charts-formulas.vercel.app/chart?cht=tx&chl=\frac{-b \pm \sqrt{b^2-4ac}}{2a}
Result: