title: jQuery - destroy and rebuild chart with original options
body: <p>I want to reset and rebuild my chart on click of reset button</p>
  
  <p>I have built a chart that fits my needs - jsfiddle</p>
  
  <p>I added some custom controls to allow the user to show/hide all series and to check/uncheck all series.</p>
  
  <p>These all work fine.</p>
  
  <p>The last part that I want to do is allow the user to reset the chart with the original options.</p>
  
  <p>Please see my code.</p>
  
  <pre><code>    &lt;link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"&gt;
      &lt;link rel='stylesheet prefetch' href='https://tyleryasaka.github.io/semantic-ui-range/range.css'&gt;
      &lt;link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.8/semantic.min.css'&gt;
  
      &lt;script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js'&gt;&lt;/script&gt;
      &lt;script src='https://tyleryasaka.github.io/semantic-ui-range/range.js'&gt;&lt;/script&gt;
      &lt;!-- #Content --&gt;
      &lt;div id="Content"&gt;
          &lt;div class="content_wrapper clearfix"&gt;
  
              &lt;!-- .sections_group --&gt;
              &lt;div class="sections_group"&gt;
              &lt;div class="entry-content" itemprop="mainContentOfPage"&gt;
  
              &lt;div class="section mcb-section   " style="padding-top:0px; padding-bottom:0px; background-color:"&gt;
                  &lt;div class="section_wrapper mcb-section-inner"&gt;
                      &lt;div class="wrap mcb-wrap one  valign-top clearfix" style=""&gt;
                          &lt;div class="mcb-wrap-inner"&gt;    
  
              &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.4/Chart.min.js"&gt;&lt;/script&gt;
  
          &lt;script type="text/javascript"&gt;
  
          var vtotal=0;
          var surfing=0;
          var emails=0;
          var social=0;
          var apps=0;
          var music=0;
          var video=0;
          var standard_definition=0;
          var high_definition=0;
          var fourK_video=0;
          var online_games=0;
          var total=0;
  
          function myChart(flag) {
              // alert('gdfgd');
            var ctx = document.getElementById("myChart").getContext('2d');
               /*Chart.defaults.global.legend.display = false;*/
               Chart.defaults.global.animation = false;
              var resetCanvas = function () {
                    $('#results-graph').remove(); // this is my &lt;canvas&gt; element
                    $('#chartContainer').append('&lt;canvas id="myChart"&gt;&lt;canvas&gt;');
                    canvas = document.querySelector('#myChart'); // why use jQuery?
                    ctx = canvas.getContext('2d');
  
  
  
                  };
              var qnt_total = Math.floor(total/10);
  
              /*Get Hidden value*/
  
              $("#qt_value").val(qnt_total);
  
              $("#qt_value").trigger('keyup');     
              var myChart = new Chart(ctx, {
  
              type: 'bar',
              interaction: {
                  enabled: false
              },
              data: {
                  labels: [""],
                  datasets: [{
                      label: total +' GB',
                      fill: false,
                      data: [total],
                      hover: {mode: null},
                      backgroundColor: [
                          'rgb(128,177,234)'
                      ],
                      borderColor: [
                          'rgb(128,177,234)'
                      ],
                      borderWidth: 1
                  }]
              },
  
  
              options: {
                  scales: {
                      responsive: true,
                      legend: { display: false },
                      display: true,
                      yAxes: [{
                          ticks: {
                              beginAtZero:true,
                              stepValue: 20,
                              max: 200
                          },
                          scaleLabel: {
                              display: true,
                              labelString: 'GB'
                          }
                      }]
                  }
              }
            });
  
      // alert(flag);
        //  if(flag == 'reset'){
              // myChart.clear();
        //  }   
      }
  
      function rPlan() {
      if (vtotal === 0){
          $('#display-8').html("Select Data Amount ");
        }
  
        else if (vtotal &gt; 0 &amp;&amp; vtotal &lt; 2){
          $('#display-8').html("2GB plan for $35p/month");
        }
  
        else if (vtotal &gt; 2 &amp;&amp; vtotal &lt; 6){
          $('#display-8').html("6GB plan for $50p/month");
        }
  
        else if (vtotal &gt; 6 &amp;&amp; vtotal &lt; 10){
          $('#display-8').html("10GB plan for $65p/month");
        }
  
        else if (vtotal &gt; 10 &amp;&amp; vtotal &lt; 14){
          alert('test');
        }
  
        else if (vtotal &gt; 14 &amp;&amp; vtotal &lt; 18){
          $('#display-8').html("18GB plan for $95p/month");
        }
  
        else if (vtotal &gt; 18 ){
          $('#display-8').html("22GB plan for $110p/month");
        }
  
         $("#texens").val(total);
            if(total == 0)
            {
                  $("#data_plane_1").hide();
                  $("#data_plane_2").hide();
                  $("#data_plane_3").hide();  
            }
            else if(total &gt; 0 &amp;&amp; total &lt; 10)
            {
                  $("#data_plane_1").show();
                  $("#data_plane_3").hide();
                  $("#data_plane_2").hide();  
            }
            else if(total &gt; 10 &amp;&amp; total &lt; 20)
            {
                  $("#data_plane_1").hide();
                  $("#data_plane_2").show();
                  $("#data_plane_3").hide();
            }
            else if(total &gt; 20 &amp;&amp; total &lt; 2000)
            {
                  $("#data_plane_1").hide();
                  $("#data_plane_2").hide();
                  $("#data_plane_3").show();
            }
      }
  
      rPlan();
  
  
  
      $(document).ready(function(){
      // Browsing
        $('#range-1').range({
          min: 0,
          max: 24,
          start: 0,
          onChange: function(value) {
            $('#display-1').html(value);
            surfing = value*0.015*30;
            total= surfing+emails+social+apps+music+standard_definition+high_definition+fourK_video+online_games;
            total = Number(total).toFixed(2);
            $('#display-7').html(total);
            rPlan();
            myChart();
          }
        });
  
        // Emails
        $('#range-2').range({
          min: 0,
          max: 600,
          step: 10,
          start: 0,
          onChange: function(value) {
            $('#display-2').html(value);
          emails = value*0.005/10*30;
          total= surfing+emails+social+apps+music+standard_definition+high_definition+fourK_video+online_games;
          total = Number(total).toFixed(2);
            $('#display-7').html(total);
      rPlan();
      myChart();
  
          }
        });
  
        // Social
        $('#range-3').range({
          min: 0,
          max: 100,
          start: 0,
          step: 5,
  
          onChange: function(value) {
            $('#display-3').html(value);
            social = value*0.025/5*30;
            total= surfing+emails+social+apps+music+standard_definition+high_definition+fourK_video+online_games;
            total = Number(total).toFixed(2);
            $('#display-7').html(total);
      rPlan();
      myChart()
          }
        });
  
        // Apps
        $('#range-4').range({
          min: 0,
          max: 50,
          start: 0,
          step: 1,
          onChange: function(value) {
            $('#display-4').html(value);
            apps = value*0.005*30;
            total= surfing+emails+social+apps+music+standard_definition+high_definition+fourK_video+online_games;
            total = Number(total).toFixed(2);
            $('#display-7').html(total);
      rPlan();
      myChart()
          }
        });
  
        // Music
        $('#range-5').range({
          min: 0,
          max: 24,
          start: 0,
          onChange: function(value) {
            $('#display-5').html(value);
             music = value*0.12*30;
             total= surfing+emails+social+apps+music+standard_definition+high_definition+fourK_video+online_games;
             total = Number(total).toFixed(2);
            $('#display-7').html(total);
      rPlan();
      myChart()
          }
        });
  
        // Video
      /*  $('#range-6').range({
          min: 0,
          max: 24,
      step: .25,
          start: 0,
          onChange: function(value) {
            $('#display-6').html(value);
            video = value*2.5*30;
            total = Number(total).toFixed(2);
            total= surfing+emails+social+apps+music+video;     
            $('#display-7').html(total);
      rPlan();
      myChart()
          }
        });*/
  
      // Standard-definition
          $('#range-7').range({
          min: 0,
          max: 24,
          start: 0,
          onChange: function(value) {
            $('#display-9').html(value);
             standard_definition = value*0.7*30;
             total= surfing+emails+social+apps+music+standard_definition+high_definition+fourK_video+online_games;
             total = Number(total).toFixed(2);
            $('#display-7').html(total);
      rPlan();
      myChart()
          }
        });
  
      // High-definition
          $('#range-8').range({
          min: 0,
          max: 24,
          start: 0,
          onChange: function(value) {
            $('#display-10').html(value);
             high_definition = value*2.5*30;
             total= surfing+emails+social+apps+music+standard_definition+high_definition+fourK_video+online_games;
             total = Number(total).toFixed(2);
            $('#display-7').html(total);
      rPlan();
      myChart()
          }
        });
  
      // 4K video
          $('#range-9').range({
          min: 0,
          max: 24,
          start: 0,
          onChange: function(value) {
            $('#display-11').html(value);
             fourK_video = value*5.85*30;
             total= surfing+emails+social+apps+music+standard_definition+high_definition+fourK_video+online_games;
             total = Number(total).toFixed(2);
            $('#display-7').html(total);
      rPlan();
      myChart()
          }
        });
  
      // online games
          $('#range-10').range({
          min: 0,
          max: 24,
          start: 0,
          onChange: function(value) {
            $('#display-12').html(value);
             online_games = value*0.012*30;
             total= surfing+emails+social+apps+music+standard_definition+high_definition+fourK_video+online_games;
             total = Number(total).toFixed(2);
            $('#display-7').html(total);
      rPlan();
      myChart()
          }
        });  
  
      });
      &lt;/script&gt;
      &lt;script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"&gt;&lt;/script&gt;
      &lt;script&gt;
       // $(function () {
       //      $("#dialog").dialog({
       //          modal: true,
       //          autoOpen: false,
       //          width: '100%',
       //          height: 'auto',
       //                    open: function() {
       //                 myChart();
          //        },
       //          draggable: false,
          //    dialogClass: 'calculator-modal-main'
       //      });
       //      $("#btnShow").click(function () {
       //          $('#dialog').dialog('open');
       //      });
       //  });
      &lt;/script&gt;
      &lt;div id="dialog" title="Estimate your monthly usage to assist you in choosing the right plan."&gt;
      &lt;div id="main-content"&gt;
          &lt;div id="content-area" class="clearfix"&gt;
              &lt;div id="left-area" class="clearfix left-area"&gt;
                  &lt;div class="ui segment"&gt;
                      &lt;h3&gt;&lt;strong&gt;Hours browsing the web&lt;/strong&gt;&lt;/h3&gt;
                      &lt;div class="ui range" id="range-1"&gt;&lt;/div&gt;
                      &lt;div class="indicator"&gt;
                          &lt;strong&gt; &lt;span id="display-1"&gt;&lt;/span&gt;&lt;/strong&gt; Hours/Day 
                      &lt;/div&gt;  
                  &lt;/div&gt;
  
                   &lt;div class="ui segment"&gt;
                      &lt;h3&gt;&lt;strong&gt;Emails sent/received with attachments&lt;/strong&gt;&lt;/h3&gt;
                      &lt;div class="ui range" id="range-2"&gt;&lt;/div&gt;
                      &lt;div class="indicator"&gt;
                          &lt;strong&gt; &lt;span id="display-2"&gt;&lt;/span&gt;&lt;/strong&gt; Emails/Day
                      &lt;/div&gt;
                  &lt;/div&gt;
  
  
                  &lt;div class="ui segment"&gt;
                      &lt;h3&gt;&lt;strong&gt;Social media posts with photos&lt;/strong&gt;&lt;/h3&gt;
                      &lt;div class="ui range" id="range-3"&gt;&lt;/div&gt;
                      &lt;div class="indicator"&gt; 
                          &lt;strong&gt; &lt;span id="display-3"&gt;&lt;/span&gt;&lt;/strong&gt; Posts/Day
                      &lt;/div&gt;
                  &lt;/div&gt;
  
                  &lt;div class="ui segment"&gt;
                      &lt;h3&gt;&lt;strong&gt;Apps/games/songs downloaded&lt;/strong&gt;&lt;/h3&gt;
                      &lt;div class="ui range" id="range-4"&gt;&lt;/div&gt;
                      &lt;div class="indicator"&gt;
                          &lt;strong&gt; &lt;span id="display-4"&gt;&lt;/span&gt;&lt;/strong&gt; Apps/Day 
                      &lt;/div&gt;
                  &lt;/div&gt;
  
  
                   &lt;div class="ui segment"&gt;
                      &lt;h3&gt;&lt;strong&gt;Hours of streaming music&lt;/strong&gt;&lt;/h3&gt;
                      &lt;div class="ui range" id="range-5"&gt;&lt;/div&gt;
                      &lt;div class="indicator"&gt;
                          &lt;strong&gt; &lt;span id="display-5"&gt;&lt;/span&gt;&lt;/strong&gt; Hours/Day
                      &lt;/div&gt;
                  &lt;/div&gt;
  
  
      &lt;!--             &lt;div class="ui segment"&gt;
                      &lt;h3&gt;&lt;strong&gt;Hours of streaming video&lt;/strong&gt;&lt;/h3&gt;
                      &lt;div class="ui range" id="range-6"&gt;&lt;/div&gt;
                      &lt;div class="indicator"&gt;
                          &lt;strong&gt; &lt;span id="display-6"&gt;&lt;/span&gt;&lt;/strong&gt; Hours/Day
                      &lt;/div&gt;
                  &lt;/div&gt; --&gt;
  
                  &lt;div class="ui segment"&gt;
                      &lt;h3&gt;&lt;strong&gt;Hours of streaming Standard-definition video&lt;/strong&gt;&lt;/h3&gt;
                      &lt;div class="ui range" id="range-7"&gt;&lt;/div&gt;
                      &lt;div class="indicator"&gt;
                          &lt;strong&gt; &lt;span id="display-9"&gt;&lt;/span&gt;&lt;/strong&gt; Hours/Day
                      &lt;/div&gt;
                  &lt;/div&gt;
  
                  &lt;div class="ui segment"&gt;
                      &lt;h3&gt;&lt;strong&gt;Hours of streaming High-definition video&lt;/strong&gt;&lt;/h3&gt;
                      &lt;div class="ui range" id="range-8"&gt;&lt;/div&gt;
                      &lt;div class="indicator"&gt;
                          &lt;strong&gt; &lt;span id="display-10"&gt;&lt;/span&gt;&lt;/strong&gt; Hours/Day
                      &lt;/div&gt;
                  &lt;/div&gt;
  
                  &lt;div class="ui segment"&gt;
                      &lt;h3&gt;&lt;strong&gt;Hours of streaming 4K video&lt;/strong&gt;&lt;/h3&gt;
                      &lt;div class="ui range" id="range-9"&gt;&lt;/div&gt;
                      &lt;div class="indicator"&gt;
                          &lt;strong&gt; &lt;span id="display-11"&gt;&lt;/span&gt;&lt;/strong&gt; Hours/Day
                      &lt;/div&gt;
                  &lt;/div&gt;          
  
                  &lt;div class="ui segment"&gt;
                      &lt;h3&gt;&lt;strong&gt;Online games&lt;/strong&gt;&lt;/h3&gt;
                      &lt;div class="ui range" id="range-10"&gt;&lt;/div&gt;
                      &lt;div class="indicator"&gt;
                          &lt;strong&gt; &lt;span id="display-12"&gt;&lt;/span&gt;&lt;/strong&gt; Hours/Day
                      &lt;/div&gt;
                  &lt;/div&gt;
  
              &lt;/div&gt;
              &lt;div id="right-area" class="right-area"&gt;
                  &lt;div class="ui segment data_plan_chart"&gt;
                      &lt;div id="chartContainer"&gt;&lt;canvas id="myChart" width="200" height="300"&gt;&lt;/canvas&gt;&lt;/div&gt;
                  &lt;/div&gt;
  
                  &lt;/br&gt;
                  &lt;input type="hidden" id="texens" name="user" value="texens" /&gt;
                  &lt;input type="hidden" id="qt_value" name="qt_value" value="qt_value" /&gt;
                  &lt;div class="plans-block"&gt;
                      &lt;label&gt;We Recommended:&lt;/label&gt;
                      &lt;div class="products" id="data_plane_1"&gt;
                          &lt;p&gt;&lt;?php
                              /*$args = array( 'post_type' =&gt; 'product', 'posts_per_page' =&gt; 5, 'product_cat' =&gt; 'dataplans', 'orderby' =&gt; 'rand' );
                              $loop = new WP_Query( $args );*/
                              $product = wc_get_product('596');
                              echo $product-&gt;get_title();
                          ?&gt;&lt;/p&gt;   
                          &lt;!-- &lt;a id='cal_cart_1' class='recommend-btn' href='&lt;?php // echo site_url(); ?&gt;/?add-to-cart=596'&gt;Add Recommended Plan&lt;/a&gt; --&gt;
                          &lt;a id='cal_cart_1' class='recommend-btn' href='&lt;?php echo esc_url_raw( add_query_arg( 'add-to-cart', '596', wc_get_checkout_url() ) ); ?&gt;'&gt;Add Recommended Plan&lt;/a&gt;
                      &lt;/div&gt;&lt;!--/.products--&gt;
                      &lt;div class="products" id="data_plane_2"&gt;
                          &lt;p&gt;&lt;?php
                              /*$args = array( 'post_type' =&gt; 'product', 'posts_per_page' =&gt; 5, 'product_cat' =&gt; 'dataplans', 'orderby' =&gt; 'rand' );
                              $loop = new WP_Query( $args );*/
                              $product = wc_get_product('1740');
                              $product_2 = wc_get_product('596');
                              $product_name = $product-&gt;get_title();
                              $product_name_2 = $product_2-&gt;get_title();
                              echo $product_merge_name = $product_name_2 . ' + ' . 'Additional 10GB Data';  
                          ?&gt;&lt;/p&gt;
                          &lt;script type="text/javascript"&gt;
                              jQuery(function(){
  
                                 //var data_cart_id = "&lt;?php //echo site_url(); ?&gt;/shop/?add-to-cart=596,1740";
                                 var data_cart_id = "&lt;?php echo esc_url_raw( add_query_arg( 'add-to-cart', '596,1740', wc_get_checkout_url() ) ); ?&gt;";
                                 jQuery("#cal_cart_2").attr("href",data_cart_id);
  
                              }); 
                          &lt;/script&gt;    
                          &lt;a id='cal_cart_2' class='recommend-btn' href=''&gt;Add Recommended Plan&lt;/a&gt;
                      &lt;/div&gt;&lt;!--/.products--&gt;
                      &lt;div class="products" id="data_plane_3"&gt;
                          &lt;?php
                          $a = "  &lt;script&gt;
                                  jQuery(document).ready(function(){
                                      jQuery('#qt_value').on('keyup',function(){
                                          var qnt_value = jQuery(this).val();
                                          $('.listprice').html(qnt_value);
  
                                      });
                                  }); 
                                  &lt;/script&gt;";
  
                          ?&gt;
                          &lt;p&gt;
                              &lt;?php
                                  $product = wc_get_product('1740');
                                  $product_2 = wc_get_product('596');
                                  $product_name = $product-&gt;get_title();
                                  $product_name_2 = $product_2-&gt;get_title();
                                  echo $product_merge_name = $product_name_2 .' + '. '&lt;span class="listprice"&gt;' . $a . '&lt;/span&gt;'. 'x Additional 10GB Data';
                              ?&gt;
  
                          &lt;/p&gt;
                          &lt;script type="text/javascript"&gt;
  
                          jQuery(document).ready(function(){
  
                              jQuery('#qt_value').on('keyup',function(){
                                  var qnt_value = jQuery(this).val();
                                  var data_cart_id_2 = "&lt;?php echo site_url(); ?&gt;/checkout/?add-to-cart=596:1,1740:"+qnt_value;
                                  jQuery("#cal_cart_3").attr("href",data_cart_id_2);
                              });
  
                          });
  
      /*                      jQuery(function(){
                                  var bla = $('#qt_value').val();
                                  console.log(bla);
                                  var data_cart_id_2 = "&lt;?php echo site_url(); ?&gt;/shop/?add-to-cart=1740:"+bla+",596:1";
                                  jQuery("#cal_cart_3").attr("href",data_cart_id_2);
  
                              }); */
                          &lt;/script&gt;   
                          &lt;script type="text/javascript"&gt;
                              $(document).ready(function(){
  
  
                               $('#reset').click(function() {
                                  total=0;    
                              $('#range-1').range({
                                  min: 0,
                                  max: 24,
                                  //start: 0
                                  start: 0,
                                  onChange: function(value) {
                                  $('#display-1').html(value);
                                  }
                                  });
                              $('#range-2').range({
                                  min: 0,
                                  max: 24,
                                  //start: 0
                                  start: 0,
                                  onChange: function(value) {
                                  $('#display-2').html(value);
                                  }
                                  });
                              $('#range-3').range({
                                  min: 0,
                                  max: 24,
                                  //start: 0
                                  start: 0,
                                  onChange: function(value) {
                                  $('#display-3').html(value);
                                  }
                                  });
                              $('#range-4').range({
                                  min: 0,
                                  max: 24,
                                  //start: 0
                                  start: 0,
                                  onChange: function(value) {
                                  $('#display-4').html(value);
                                  }
                                  });
                              $('#range-5').range({
                                  min: 0,
                                  max: 24,
                                  //start: 0
                                  start: 0,
                                  onChange: function(value) {
                                  $('#display-5').html(value);
                                  }
                                  });
                              $('#range-6').range({
                                  min: 0,
                                  max: 24,
                                  //start: 0
                                  start: 0,
                                  onChange: function(value) {
                                  $('#display-6').html(value);
                                  }
                                  });
                              $('#range-7').range({
                                  min: 0,
                                  max: 24,
                                  //start: 0
                                  start: 0,
                                  onChange: function(value) {
                                  $('#display-9').html(value);
                                  }
                                  });
                              $('#range-8').range({
                                  min: 0,
                                  max: 24,
                                  //start: 0
                                  start: 0,
                                  onChange: function(value) {
                                  $('#display-10').html(value);
                                  }
                                  });
                              $('#range-9').range({
                                  min: 0,
                                  max: 24,
                                  //start: 0
                                  start: 0,
                                  onChange: function(value) {
                                  $('#display-11').html(value);
                                  }
                                  });
                              $('#range-10').range({
                                  min: 0,
                                  max: 24,
                                  //start: 0
                                  start: 0,
                                  onChange: function(value) {
                                  $('#display-12').html(value);
                                  }
                                  });
  
                               });
                              });                 
                                  &lt;/script&gt;                   
                          &lt;a id='cal_cart_3' class='recommend-btn' href=''&gt;Add Recommended Plan&lt;/a&gt;
  
                          &lt;!-- ///cart/?add-to-cart=7781 --&gt;
                      &lt;/div&gt;
                      &lt;input type="button" id="reset" value="Reset" /&gt;
  
                      &lt;!-- &lt;button id='reset' class='reset-btn'&gt; Reset the data &lt;/button&gt; --&gt;&lt;!--/.products--&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="text-right print-block"&gt;
                  &lt;a class="print-btn" onClick="window.print()" href="javascript:void(0);"&gt;Print this page&lt;/a&gt;
              &lt;/div&gt;
              &lt;script&gt;
                  function myFunction() {
                      window.print();
                  }
              &lt;/script&gt;
  
              &lt;div class="usage-calculated"&gt;
                  &lt;div class="usage-left"&gt;
                      &lt;label&gt;How is your usage calculated?&lt;/label&gt;
                      &lt;p&gt;To calculate your usage, these approximations were applied:&lt;/p&gt;
                      &lt;table&gt;
                          &lt;tr&gt;
                              &lt;td width="65%"&gt;&lt;label&gt;Activity&lt;/label&gt;&lt;/td&gt;
                              &lt;td width="35%"&gt;&lt;label&gt;Approx. Data Usage&lt;/label&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;Hours Browsing the Web&lt;/td&gt;
                              &lt;td&gt;15 MB/hour&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;Emails Sent/Received with Photos&lt;/td&gt;
                              &lt;td&gt;500 KB/email&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;Social media posts with photos&lt;/td&gt;
                              &lt;td&gt;5 MB/item&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;Apps/games/songs downloaded&lt;/td&gt;
                              &lt;td&gt;5 MB/item&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;Hours of streaming music&lt;/td&gt;
                              &lt;td&gt;2 MB/minute&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;Hours of streaming HD video&lt;/td&gt;
                              &lt;td&gt;2.5 GB/hour&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;Standard-definition video&lt;/td&gt;
                              &lt;td&gt;700 MB/hr&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;High-definition video&lt;/td&gt;
                              &lt;td&gt;2500 MB/hr&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;4K video&lt;/td&gt;
                              &lt;td&gt;5850 MB/hr&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;Online games&lt;/td&gt;
                              &lt;td&gt;12 MB/hr&lt;/td&gt;
                          &lt;/tr&gt;
                      &lt;/table&gt;
                      &lt;p&gt;
                          &lt;label&gt;1 MB = 1,024KB&lt;/label&gt;
                          &lt;label&gt;1 GB = 1,024MB&lt;/label&gt;
                      &lt;/p&gt;
                  &lt;/div&gt;
                  &lt;div class="usage-right"&gt;
                      &lt;p&gt;*These are just estimates and data transfer amounts will vary. Video applications and settings along with network conditions may impact the amount of data consumed. Downloads and buffers, such as streaming music and video, will bill for the entire download. Please regularly check and manage your usage.&lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;      
      &lt;/div&gt;   
  
  
  
  
              &lt;/div&gt;
  </code></pre>