1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| <script type="text/javascript">
$(function() {
Highcharts.setOptions({
lang: {
months: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin','juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
weekdays: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi','Jeudi', 'Vendredi', 'Samedi'],
shortMonths: ['Janv.', 'Févr.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Août', 'Sept.', 'Oct.', 'Nov.', 'Déc.'],
decimalPoint: ',',
downloadPNG: 'Télécharger en image PNG',
downloadJPEG: 'Télécharger en image JPEG',
downloadPDF: 'Télécharger en document PDF',
downloadSVG: 'Télécharger en document Vectoriel',
exportButtonTitle: 'Export du graphique',
loading: 'Chargement en cours...',
printButtonTitle: 'Imprimer le graphique',
resetZoom: 'Réinitialiser le zoom',
resetZoomTitle: 'Réinitialiser le zoom au niveau 1:1',
thousandsSep: ' ',
decimalPoint: ','
}
});
// Create the chart
window.chart = new Highcharts.StockChart({
chart : {
renderTo : 'container'
},
rangeSelector : {
selected : 0
},
title : {
text : 'mon titre'
},subtitle: {
text: 'mon sous-titre'
},
tooltip: {
crosshairs: true,
shared: true,
formatter: function() {
var s = Highcharts.dateFormat('%A %e %b %Y', this.x);
$.each(this.points, function(i, point) {
s += '<br/>'+this.series.name+':'+'<b>'+this.y+'<b>';
});
return s;
}
},
series : [{
name : 'Nom de la série',
data : [<?php echo rtrim($DataResult, ",");?>],
tooltip: {
//valueDecimals: 0
}
}]
})
})
</script> |