| Server IP : 46.62.235.243 / Your IP : 216.73.216.217 Web Server : Apache/2.4.58 (Ubuntu) System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/linkabili/node_modules/jquery.flot.tooltip/examples/ |
Upload File : |
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="js/jquery.flot.js"></script>
<script src="js/jquery.flot.time.js"></script>
<script src="../js/jquery.flot.tooltip.js"></script>
<div id="chart1" style="width:600px;height:150px;"></div>
<div id="chart2" style="width:600px;height:150px;"></div>
<script>
$(function () {
// first chart
var chart1Options = {
series: {
lines: { show: true },
points: { show: true }
},
xaxis: { mode: "time", timeformat: "%m/%d", minTickSize: [1, "day"] },
grid: { hoverable: true },
legend: { show: false },
tooltip: {
show: true,
content: "y: %y"
}
};
var chart1Data = { label: "chart1", data: [
[1354521600000, 6322],
[1355040000000, 6360],
[1355223600000, 6368],
[1355306400000, 6374],
[1355487300000, 6388],
[1355571900000, 6393]
]};
$.plot($("#chart1"), [chart1Data], chart1Options);
// second chart
var chart2Options = {
series: {
bars: { show: true, barWidth: 43200000 }
},
xaxis: { mode: "time", timeformat: "%m/%d", minTickSize: [1, "day"] },
grid: { hoverable: true },
legend: { show: false },
tooltip: {
show: true,
content: "x: %x, y: %y"
}
};
var chart2Data = { label: "chart2", data: [
[1354521600000, 1000],
[1355040000000, 2000],
[1355223600000, 3000],
[1355306400000, 4000],
[1355487300000, 5000],
[1355571900000, 6000]
]};
$.plot($("#chart2"), [chart2Data], chart2Options);
});
</script>