Reporting tools have became so pervasive today that a lot of applications around today’s IT world has these types of tools that reports a lot of complex data in a simple and understandable way. Pie charts, Bar graph, Line charts have became a standard way of representing data in a good and understandable way. There are lots of Reporting tools available that can be leverage to create such kind of charts. Google Chart API is one of such online tool that can be used to generate complex charts for visual data representation.
What is Google Chart API?The Google Chart API is an extremely simple tool that lets you easily create a chart from some data and embed it in a webpage. You embed the data and formatting parameters in an HTTP request, and Google returns a PNG image of the chart. Many types of chart are supported, and by making the request into an image tag you can simply include the chart in a webpage. Google had created these API’s for their internal use to generate charts in applications like finance. But soon they realised these API’s will be of great use and hence they launched Google Chart API.
Supported ChartsCurrently following are the charts that are being supported by Google Charts API.
- Line Chart
- Pie Chart
- Bar Chart
- Radar Chart
- Venn Diagrams
- Scatter Plots
- QR Codes
How does it works?Google Chart API works by sending a HTTP request using URL. All what we have to do is to create a URL that specifies all arguments and other information and send it using HTTP. Google Chart will return us the image of the Chart that we requested.
Live ExamplesFollowing are few examples in each of the Chart types that you can generate using Google Chart APIs.
Pie ChartHello World Pie Chart.
Two dimensional pie chart.
Concentric pie charts.
Bar ChartsHorizontal bar chart, with stacked bars.
Vertical bar chart, with stacked bars.
Horizontal bar chart, with grouped bars.
Line ChartsChart of type LC.
Line charts of type ls are also known as sparklines.
For charts of type lxy, a pair of data sets is required for each line.