title: Integrate Flotr2 charts Dynamically from DB
body: <p>I am new to this flotr and beginner of java. How can i create a flotr chart that retervie data from data base. i can create chart by static values but using database how can i create flotr charts. please give me some Example with database . so that i can work for all the othe charts.please help guide me the process to retervie data ffrom database into flotr charts using java or jsp.</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
   &lt;head&gt;
    &lt;title&gt; Line Chart&lt;/title&gt;
  
    &lt;style&gt;
    body {
          margin: 20px;
          padding:10px;
  
        }
        #example {
      width: 500px;
      height: 300px;
  }
    &lt;/style&gt;
   &lt;/head&gt;
  
   &lt;body&gt;
  &lt;div id="example"&gt;&lt;/div&gt;
    &lt;script type="text/javascript" src="./js/flotr2.min.js"&gt;&lt;/script&gt;
  
      &lt;script type="text/javascript"&gt;
  (function basic(container) {
  
    var
      d1 = [[0, 3], [4, 8], [8, 5], [9, 13]], // First data series
  
        graph;
     // Draw Graph
          graph = Flotr.draw(container, [ d1],{
          lines: {show: true, fill: true,color: 'yellow'},
          points: {show: true,radius: 3,fillColor:'yellow'},
          title: "Line Chart",
          subtitle: "Employee"}
  
    );
  })(document.getElementById("example"));
      &lt;/script&gt;
   &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>