I did this simulation ( jsfiddle too):
$(function() {
$.ajax({
url: "https://www.json-generator.com/api/json/get/cqueInyKdK?indent=2",
type: 'POST'
}).done(function(makeTheDO) {
console.log(makeTheDO);
//datas que quero no eixo X
console.log(makeTheDO[0].data);
//series que quero no eixo Y
console.log(makeTheDO[0].serie);
// Create the chart
Highcharts.stockChart('container', {
rangeSelector: {
selected: 1
},
yAxis: {
category: makeTheDO[0].data
},
series: [{
name: 'ponto no periodo da data que nao consigo por',
data: makeTheDO[0].serie,
tooltip: {
valueDecimals: 1
}
}]
});
});
});
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script><scriptsrc="https://code.highcharts.com/stock/highstock.js"></script>
<script src="https://code.highcharts.com/stock/modules/exporting.js"></script><h3>ComousardatasdoBDemumjsonnohighchartsEixoX?</h3><divid="container" style="height: 400px; min-width: 310px"></div>
But this json is being mounted in my database via PHP , that date comes from the database, and I can not put it in the X axis, can anyone help me?