JavaScript Two google bar charts not working in one page google charts work offline,google charts not working,google charts

This is solution without PHP with the given data, first chart with option: "isStacked: true":

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

function drawChart() {
    var data1 = google.visualization.arrayToDataTable([
        ['Metric Tonnes', 'HSFO', 'LSFO', 'MGO'],
        ['BULK CARRIER', 30, 40, 40],
        ['OIL TANKER', 60, 40, 45]
    ]);
    var data2 = google.visualization.arrayToDataTable([
        ['Metric Tonnes', 'HSFO', 'LSFO', 'MGO'],
        ['BULK CARRIER', 10, 40, 40],
        ['CHEMICAL TANKER', 50, 40, 55]
    ]);
  var options1 = {
  title: 'Log Book Discrepancy',
    chartArea: {width: '50%'},
    isStacked: true,
    hAxis: {
      title: 'HSFO, LSFO, and MGO',
      minValue: 0,
    },
  };
  var options2 = {
  title: 'Bunkers Found',
    chartArea: {width: '50%'},
    hAxis: {
      title: 'HSFO, LSFO, and MGO',
      minValue: 0,
    },
  };    
  var chart1 = new google.visualization.BarChart(document.getElementById('log_book_discrepancy'));
  chart1.draw(data1, options1);
  var chart2 = new google.visualization.BarChart(document.getElementById('bunkers_found'));
  chart2.draw(data2, options2);
}

https://jsfiddle.net/mblenton/pmeh4hr9/2/

or with MaterialChart:

https://jsfiddle.net/mblenton/gp12p37w/2/

Answer:1

Why is the text of the paragraph always one letter behind? Shouldn't it automatically "copy" the value of the input to the paragraph and always be the same text? How can I fix this problem? $(...

Why is the text of the paragraph always one letter behind? Shouldn't it automatically "copy" the value of the input to the paragraph and always be the same text? How can I fix this problem? $(...

  1. input equal output
  2. input equal output energy
  3. should input equal output
  4. does work input equal output
  5. why does input equal output

When i click on a element with a class named sections, i should get an alert showing what is it's class index, but it's showing a wrong number. For example, if i click the first div element with a ...

When i click on a element with a class named sections, i should get an alert showing what is it's class index, but it's showing a wrong number. For example, if i click the first div element with a ...

  1. jquery indexof
  2. jquery indexof array
  3. jquery indexof is not a function
  4. jquery indexof case insensitive
  5. jquery index not working
  6. jquery indexof not working
  7. jquery index method
  8. jquery indexof multiple values
  9. jquery index returns negative
  10. jquery index of selected option
  11. jquery index of clicked element
  12. jquery indexeddb
  13. jquery index of class
  14. jquery indexof array of objects
  15. jquery index of parent
  16. jquery index greater than
  17. jquery index each
  18. jquery indexof return value
  19. jquery indexeddb plugin
  20. jquery index start at 1

How can I get the class name of the parent div from which a html link calls a javascript function? In the following code example: <div class="parent-class"> <a href="javascript:parent(...

How can I get the class name of the parent div from which a html link calls a javascript function? In the following code example: <div class="parent-class"> <a href="javascript:parent(...

  1. get class name parent jquery
  2. css class name parent
  3. jquery class name parent
  4. python class parent name
  5. ruby class parent name
  6. python get class parent name
  7. parent class name javascript
  8. parent class name
  9. php get class parent name
  10. parent class name php
  11. get class name of parent
  12. get class name of parent div jquery
  13. parent class name c++

So I have a service exposed to multiple angular controllers. This service checks if our access token is valid, and if it isn't, makes a request to the server to get a new access token (by sending a ...

So I have a service exposed to multiple angular controllers. This service checks if our access token is valid, and if it isn't, makes a request to the server to get a new access token (by sending a ...