title: ChartJS only show me data when I zoom-in or zoom-out
body: <p>actually I'm using ASP.NET with SQL Server. And I'm using ChartJS to do the Charts for my Website. The problem is that ChartJS only show me the results when I do zoom in or zoom out in the browser.</p>
  
  <p>Anyone knows why?, I'm using AJAX to get information from the Database and do a dynamic Chart.</p>
  
  <p>This is my JavaScript:</p>
  
  <pre><code>        $(document).ready(function () {
          $.ajax({
              type: "POST", 
              url: "Graficas.asmx/obtenerGrafica",
              data: '',
              contentType: "application/json; charset=utf-8",
              dataType: "json", // dataType is json format
              success: function OnSuccess(response) {
                  items = response.d;
                  $.each(items, function (index, val) {
                      myChart.data.labels.push(val.Nombre);
                      myChart.data.datasets[0].data.push(val.Gastado);
                      nmbre.push(val.Nombre);
                      precio.push(val.Gastado);
                  });
              },
              error: function onError(error) {
                  console.log(error.d);
              },
          });
          var ctx = document.getElementById("myChart");
          var myChart = new Chart(ctx, {
              type: 'horizontalBar',
              data: {
                  labels: [],
                  datasets: [{
                      label: ['Mensual'],
                      data: [],
                      backgroundColor: [
                          'rgba(137, 107, 255, 0.3)'
                      ],
                      borderColor: [
                          'rgba(137, 107, 255, 1)',
  
                      ],
                      borderWidth: 1
                  }
                  ]
              },
              options: {
                  scales: {
                      yAxes: [{
                          ticks: {
                              beginAtZero: true
                          }
                      }]
                  }
              }
          });           
      });
  </code></pre>
  
  <p>Thank u.</p>