File "compare_elo03.php"
Full Path: /home/analogde/www/Bookmarks/CHESS_ON/compare_elo03.php
File size: 1.3 KB
MIME-type: text/x-php
Charset: utf-8
<?php
$strJsonFileContents = file_get_contents("elo_combine.json");
?>
<script src="Charts_2022/js/fusioncharts.js"></script>
<div id="chart-container">FusionCharts will render here</div>
<script>
var schema = [{
"name": "Time",
"type": "date",
"format": "%d-%b-%Y"
}, {
"name": "Type",
"type": "string"
}, {
"name": "ELO",
"type": "number"
}]
var plouf = <?php echo $strJsonFileContents; ?>;
var fusionTable = new FusionCharts.DataStore().createDataTable(plouf, schema); // data
chart = new FusionCharts({
type: 'timeseries',
renderAt: 'chart-container',
width: "90%",
height: 600,
dataSource: {
data: fusionTable,
chart: {
yAxisName: 'Quarter',
exportEnabled: 0,
},
/*navigator: {
enabled: 0
},*/
caption: {
text: "Comparaison ELO de J1&J2"
},
series: "Type",
yAxis: [{
plot: [{
value: 'ELO',
connectNullData: true,
type: 'line',
}],
"min": "500",
"max": "2000",
format: {
defaultFormat: 0,
},
//"min": "130",
// "max": "9800",
}],
/*xAxis: {
binning: {
year: [],
month: [],
day: [1],
hour: [],
minute: [],
second: [],
millisecond: []
}
}*/
}
}).render();
</script>