Search
 
SCRIPT & CODE EXAMPLE
 

HTML

graphs in html

<!DOCTYPE html>
<html>
  <head>
    <title>JavaScript Bar Chart</title>
    <script src="https://cdn.anychart.com/releases/8.0.0/js/anychart-base.min.js">>/script>
  </head>
  <body>
    <div id="container" style="width: 100%; height: 100%"></div>
    <script>
      anychart.onDocumentReady(function() {
 
        // set the data
        var data = {
            header: ["Name", "Death toll"],
            rows: [
              ["San-Francisco (1906)", 1500],
              ["Messina (1908)", 87000],
              ["Ashgabat (1948)", 175000],
              ["Chile (1960)", 10000],
              ["Tian Shan (1976)", 242000],
              ["Armenia (1988)", 25000],
              ["Iran (1990)", 50000]
        ]};
 
        // create the chart
        var chart = anychart.bar();
 
        // add the data
        chart.data(data);
 
        // set the chart title
        chart.title("The deadliest earthquakes in the XXth century");
 
        // draw
        chart.container("container");
        chart.draw();
      });
    </script>
  </body>
</html>
Comment

PREVIOUS NEXT
Code Example
Html :: html entity close x 
Html :: customize appearance of up/down arrows in html number inputs 
Html :: normie box dank memer 
Html :: html go to specific part of page 
Html :: share to google plus html link 
Html :: lwc unescaped html 
Html :: webviwe 
Html :: ramda js cdn 
Html :: how to make a svg of full width of a webpage html 
Html :: slider with steps 
Html :: image taggen docker 
Html :: type button on form 
Html :: on click drop down bootstrao 
Html :: handlebar js basic example 
Html :: cara membuat dropdown di html 
Html :: yaml multiline string 
Html :: input select and button on same line 
Html :: html form tag 
Html :: what is tr tag used for 
Html :: popup 
Html :: html image styling 
Html :: html style tag type 
Html :: how to convert html to jpg 
Html :: submit button bulma 
Html :: html to flutter 
Html :: bootstrap 5 growing spinner 
Html :: html multi like tag indentation convention 
Html :: fil text are with select html textarea 
Html :: espaçamento bootstrap 
Html :: navbar html css 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =