Edit in JSFiddle

var stxx = new CIQ.ChartEngine({
  container: $$$(".chartContainer")
}); // Declare a CIQ.ChartEngine object. This is the main object for drawing charts.


var symbol = "SPY";

CIQ.postAjax("https://jsfiddle.chartiq.com/sample_json.js?symbol=" + symbol, null, function(status, response) {
  if (status != 200) {
    return;
  }
  var yourData = JSON.parse(response);
  stxx.loadChart(
    symbol,
    yourData,
    null, {
      periodicity: {
        period: 1,
        interval: 'day'
      }
    }
  );

});
<div class="chartContainer" style="width:100%;height:400px;position:relative;"></div>

<!--[if IE 8]><script>alert("This template is not compatible with IE8");</script><![endif]-->

<script src="https://jsfiddle.chartiq.com/chart/js/chartiq.js"></script>