title: Chart.js - draw horizontal line in Bar Chart (type bar)
body: <p>Good evening , I want to draw a horizontal line on a graph Bar Chart using Chart.js .</p>
  
  <p>I read the question <a href="https://stackoverflow.com/a/33798061/3814222">Chart.js - draw horizontal line</a> and I could not draw the line on a Bar Chart, as indicated is the implementation for Line Chart.</p>
  
  <p>My code is implemented to <a href="https://jsfiddle.net/wrcxhnm1/1/" rel="nofollow noreferrer">jsfiddle</a> </p>
  
  <p>HTML</p>
  
  <pre><code>&lt;div&gt;
    &lt;canvas id="ctx"&gt;&lt;/canvas&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>JS</p>
  
  <pre><code>var data = {
      labels: ["Docente 1", "Docente 2", "Docente 3", "Docente 4", "Docente 5", "Docente 6", "Docente 7"],
      datasets: [
          {
              label: "Semestre 2017-I",
              borderWidth: 1,
              data: [3.65, 2.59, 1.80, 2.81, 0.56, 0.55, 3.40]
          }
      ]
  };            
  
  var ctx = document.getElementById("ctx");
  
  var myBarChart = new Chart(ctx, {
     type: 'bar',
     data: data
  });
  </code></pre>
  
  <p>and it would be able to draw the horizontal line, obtaining a graph of the form:
  <a href="https://i.stack.imgur.com/QlOKG.png" rel="nofollow noreferrer">http://i.stack.imgur.com/QlOKG.png</a></p>