google charts
play

Google Charts Display live data on your site 1 Using Google Charts - PowerPoint PPT Presentation

Google Charts Display live data on your site 1 Using Google Charts https://developers.google.com/chart 2 3 we want to represent this data 4 Step 1 create a container div inside an html page 5 Step 2 create a .js fi le with the following


  1. Google Charts Display live data on your site 1

  2. Using Google Charts https://developers.google.com/chart 2

  3. 3

  4. we want to represent this data 4

  5. Step 1 create a container div inside an html page 5

  6. Step 2 create a .js fi le with the following content we’re going to de fi ne this function! 6

  7. other packages annotationchart • bar • calendar • gauge • geochart • line • map • orgchart • sankey • table • timeline • treemap • wordtree • 7

  8. Step 3 create the drawChart() function 8

  9. Step 4 de fi ne the data my data 9

  10. …set the options 10

  11. …continue this will draw a pie chart end of the drawChart() function 11

  12. complete code 12

  13. Step 5 import google’s api and our script inside the html 13

  14. result 1 14

  15. Customizing the Chart https://developers.google.com/chart/interactive/docs/gallery/ piechart#Con fi guration_Options 15

  16. result 2 16

  17. How about a bar chart? just replace PieChart with BarChart 17

  18. result 3 18

  19. more charts on https://developers.google.com/chart/interactive/docs/gallery 19

  20. Both pie and bar charts are included in the corechart package However, if you want a treemap or geo chart on your page, you must additionally load the 'treemap' or 'geomap' packages.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend