<script type="text/javascript">
google.charts.load('current', { packages: ['corechart'] });
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var jsonData = $.ajax({
url: "getdata.php",
dataType: "json",
async: false
}).responseText;
var data = new google.visualization.DataTable(jsonData, true);
var options = {
title: 'BITMEX:XBTUSD',
vAxis: { title: '100%', showTextEvery: 1 },
hAxis: { title: '100%', showTextEvery: 5 },
axisTitlesPosition: 'none',
legend: 'none',
backgroundColor: '#FFFFFF',
chartArea: { left: '5%', top: '3%', width: '90%', height:
'94%' },
width: '100%',
height: '100%',
lineWidth: 1,
bar: { groupWidth: '95%' },
isStacked: true,
candlestick: {
fallingColor: { stroke: '#000000', strokeWidth: 1,
fill: '#a52714' },
risingColor: { stroke: '#000000', strokeWidth: 1, fill:
'#0f9d58' }
},
seriesType: 'candlesticks',
series: {
0: { type: 'candlesticks', targetAxisIndex: 1 },
1: { type: 'bars', color: '#1C1C1C', areaOpacity: 0.7,
targetAxisIndex: 0, labelInLegend: false, visibleInLegend: false },
2: { type: 'bars', color: '#6E6E6E', areaOpacity: 0.7,
targetAxisIndex: 0, labelInLegend: false, visibleInLegend: false },
3: { type: 'line', color: '#FF8000', targetAxisIndex: 1
}
},
vAxes: {
0: { format: 'short' },
}
};
var chart = new
google.visualization.ComboChart(document.getElementById('chart_div'));
chart.draw(data, options);
setTimeout(function () { drawChart() }, 5000);
}
</script>
On Saturday, 28 March 2020 15:43:30 UTC-4, Bilbon Sakket wrote:
>
> test
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/527fafc8-c93c-4c4b-85f1-1d16074c5551%40googlegroups.com.