JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>
      Google Visualization API Sample
    </title>
    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
    <script type="text/javascript">
     $(document).ready(function(){
    var selectedVal = "";
  $('#dashboard-chart-type').change(function(){
      selectedVal = $(this).val();
      switch(selectedVal) {

          case "Pie_Chart":
              $('#visualization').empty();
              google.load('visualization', '1', {packages: ['corechart']});
              init();
              break;
          case "Bar_Chart":
              debugger;
              $('#visualization').empty();
              google.load('visualization', '1', {packages: ['corechart']});
              init2();
              break;
          case "Table_Chart":
              debugger;
              $('#visualization').empty();
              google.load('visualization', '1', {packages: ['corechart']});
              init3();
              break;
          default:
              $('#visualization').empty();
              google.load('visualization', '1', {packages: ['corechart']});
              init();
              break;
      }
  });

    if(selectedVal==""){
        init();
    }

});
function init(){
    google.setOnLoadCallback(drawChart());
}

function init2(){
    google.setOnLoadCallback(drawBarChart());
}

function init3(){
    google.setOnLoadCallback(drawTable());
}

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

 function drawChart() {

            var data = google.visualization.arrayToDataTable([
              ['Task', 'Hours per Day'],
              ['Work', 11],
              ['Eat', 2],
              ['Commute', 2],
              ['Watch TV', 2],
              ['Sleep', 7]
           ...

CSS

<style>
.orange-background {
   background-color: orange;
  }

 .orchid-background {
  background-color: orchid;
 }

.beige-background {
 background-color: beige;
  }
   </style>