title: AnyChart Firebase
body: <p>I am new to AnyChart charting library. I would like to use AnyChart to plot data which is pulled from Firebase. I am now facing a problem to plot an array data on AnyChart. I am now facing problem pulling an array data set from Firebase using the code below:</p>
  
  <pre><code>dbRef2.limitToLast(20).on('child_added',function(snap) {
  
  var Time2 = snap.val().timestamp;
  var Humidex2 = snap.val().Humidex;
  
  dataSetFirebaseHumidex2.push({x: Time2 ,y: Humidex2});
  console.log(dataSetFirebaseHumidex2);
  });
  
  anychart.onDocumentReady(function () {
  
  // create a data set
  var data = anychart.data.set();
  
  data.data([dataSetFirebaseHumidex2]);
  
  // map the data
  var seriesData_1 = data.mapAs({x: 0, y: 1});
  
  // create a chart
  var chart = anychart.area();
  
  // create the first series, set the data and name
  var series1 = chart.spline(data);
  series1.name("S1");
  
  // configure the visual settings of the first series
  series1.normal().stroke("#00cc99", 1, "10 5", "round");
  series1.hovered().stroke("#00cc99", 2, "10 5", "round");
  series1.selected().stroke("#00cc99", 4, "10 5", "round");
  
  // set the chart title
  chart.title("Humidex Index");
  
  // set the titles of the axes
  chart.xAxis().title("Time");
  chart.yAxis().title("Humidex");
  
  // set the container id
  chart.container("container");
  
  // initiate drawing the chart
  chart.draw();
  });
  </code></pre>
  
  <p>Could anyone please advise? Your help is very much appreciated.</p>