Saturday 23 July 2011

Now that you've learned the basics of making a chart, here are a few optimizations that you can use.

Improving Performance on Pages with Many Charts

If you have just a few charts on your page, the standard base URL https://chart.googleapis.com/chart should be fine. However, if you have many charts, you can add a number 0-9 and a dot just before chart.apis.google.com. If you specify a different number for each chart on your page, the browser will try to load more images simultaneously, rather than waiting to load them in sequence. However, you should only need this if you're loading perhaps five or more charts on a page. For example:

Using POST

URLs are limited to 2K in length, so if your chart has more data than that, you'll have to use POST instead of GET, as described here. GET is when you type your chart URL into your browser URL bar, or use it as the source of an <img> element in a web page. POST requires additional programming in another language, such as PHP or PERL.

0 comments:

About Me

About Me !

Optimizations

| Saturday 23 July 2011 |


Now that you've learned the basics of making a chart, here are a few optimizations that you can use.

Improving Performance on Pages with Many Charts

If you have just a few charts on your page, the standard base URL https://chart.googleapis.com/chart should be fine. However, if you have many charts, you can add a number 0-9 and a dot just before chart.apis.google.com. If you specify a different number for each chart on your page, the browser will try to load more images simultaneously, rather than waiting to load them in sequence. However, you should only need this if you're loading perhaps five or more charts on a page. For example:

Using POST

URLs are limited to 2K in length, so if your chart has more data than that, you'll have to use POST instead of GET, as described here. GET is when you type your chart URL into your browser URL bar, or use it as the source of an <img> element in a web page. POST requires additional programming in another language, such as PHP or PERL.


0 comments:

Post a Comment

Lorem ipsume