Google Geo Chart for States.

by scgupta

HTML

<script src="https://www.google.com/jsapi"></script>
<div id="percapitagst" style="margin: 1em"> </div>

JavaScript

google.load('visualization', '1', {
  'packages': ['geochart']
});
google.setOnLoadCallback(drawVisualization);

function drawVisualization() {
  // https://en.wikipedia.org/wiki/ISO_3166-2:IN
  var data = google.visualization.arrayToDataTable([
    ['State Code', 'State', 'Per Capita GST Oct 2020'],
    ['IN-AP', 'Andhra Pradesh', Math.round((2480 + 3383) * 10000000 / (49577103 + 35003674))],
    //['IN-TG', 'Telangana', Math.round(3383 * 10000000 / 35003674) ],
    ['IN-AR', 'Arunachal Pradesh', Math.round(98 * 10000000 / 1383727)],
    ['IN-AS', 'Assam', Math.round(1017 * 10000000 / 31205576)],
    ['IN-BR', 'Bihar', Math.round(1010 * 10000000 / 104099452)],
    ['IN-CT', 'Chhattīsgarh', Math.round(1974 * 10000000 / 25545198)],
    ['IN-GA', 'Goa', Math.round(310 * 10000000 / 1458545)],
    ['IN-GJ', 'Gujarat', Math.round(6787 * 10000000 / 60439692)],
    ['IN-HR', 'Haryana', Math.round(5433 * 10000000 / 25351462)],
    ['IN-HP', 'Himachal Pradesh', Math.round(691 * 10000000 / 6864602)],
    ['IN-JH', 'Jharkhand', Math.round(1771 * 10000000 / 32988134)],
    ['IN-KA', 'Karnataka', Math.round(6998 * 10000000 / 61095297)],
    ['IN-KL', 'Kerala', Math.round(1665 * 10000000 / 33406061)],
    ['IN-MP', 'Madhya Pradesh', Math.round(2403 * 10000000 / 72626809)],
    ['IN-MH', 'Maharashtra', Math.round(15799 * 10000000 / 112374333)],
    ['IN-MN', 'Manipur', Math.round(43 * 10000000 / 2570390)],
    ['IN-ML', 'Meghalaya', Math.round(117 * 10000000 / 2966889)],
    ['IN-MZ', 'Mizoram', Math.round(18 * 10000000 / 1097206)],
    ['IN-NL', 'Nagaland', Math.round(30 * 10000000 / 1978502)],
    ['IN-OR', 'Odisha', Math.round(2419 * 10000000 / 41974219)],
    ['IN-PB', 'Punjab', Math.round(1376 * 10000000 / 27743338)],
    ['IN-RJ', 'Rajasthan', Math.round(2966 * 10000000 / 68548437)],
    ['IN-SK', 'Sikkim', Math.round(177 * 10000000 / 610577)],
    ['IN-TN', 'Tamil Nadu', Math.round(6901 * 10000000 / 72147030)],
    ['IN-TR', 'Tripura', Math.round(54 * 10000000 /...