Check out example codes for "library google chart". It will help you in understanding the concepts better.

Code Example 1

<script src="https://www.gstatic.com/charts/loader.js"></script><script>  google.charts.load('current', {packages: ['corechart']});  google.charts.setOnLoadCallback(drawChart);  ...</script>

Learn ReactJs, React Native from akashmittal.com