Merhaba arkadaşlar. Bir kaç gündür meşgul olduğum bir durum var. Aşağıdaki kodlar sorunsuz çalışıyor. Ancak "GetJson" url adresi yerine kendi sunucumdaki url adresini yazdığımda çalışmıyor. Sorun nerede acaba yardımcı olursanız memnun olurum.
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.highcharts.com/stock/highstock.js"></script>
<script src="https://code.highcharts.com/modules/oldie.js"></script>
<script src="https://code.highcharts.com/stock/modules/exporting.js"></script>
<div id="container" style="height: 400px; min-width: 310px"></div>
<script>
$.getJSON('https://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json&callback=?', function (data) {
// Create the chart
Highcharts.stockChart('container', {
rangeSelector: {
selected: 1
},
title: {
text: 'AAPL Stock Price'
},
series: [{
name: 'AAPL',
data: data,
tooltip: {
valueDecimals: 2
}
}]
});
});
</script>