gchart is a jquery component based on google chart API . Use gchart to easily generate powerful charts and reports. Gchart, based on the Google chart interface, is simple, convenient, powerful, sufficient, and easy to use. The series of articles "gchart: A complete guide to Google chart interface components based on jquery" will take you into the report world of gchart.
Let me first explain this awkward title.
google chart API:
The Google Chart API is an API interface provided by Google that can generate various charts. Depending on your needs, the Google Charts API will return an image in PNG format in response to a URL. The Google Charts API can generate many types of images, including line charts, bar charts, and pie charts. You can specify properties for each image type, such as size, color, and labels.
The above is copied from the official website of Google Chart API. According to the listening habits of Chinese people, it is: Google Chart API is a special interface. Just plug in the report requirements you want, and it will give you a PNG image. , this PNG picture is the report you want!
XX component based on jquery :
To put it bluntly, a buddy wrote a JavaScript component, but he was a bit lazy. He didn't want to get an element and needed document.getElementById, so he used a basic JavaScript library - jquery. He doesn't have to worry about solving browser compatibility and other messy JavaScript issues, and can focus mainly on the component logic he wants to implement. Of course, there are many other benefits of using jquery. In short, if you want to use this buddy's JavaScript component, you must first introduce jquery, the basic JavaScript library.
gchart:
As mentioned above, a buddy wants to write a JavaScript component, and the function of this component is to call Google's chart API more simply and conveniently to generate various charts.
In short, gchart uses someone else’s jquery in the front, and someone else’s google chart API in the back. However, don't underestimate it. Being able to transform complexity into simplicity and decay into magic is considered a talent. And our series of articles "gchart: A complete guide to Google chart interface components based on jquery" is to interpret it.
Source: JustinYoung's Blog
Editor in charge: moby