Flot x-Axsis ist nicht richtig, nur ein Datenpunkt Plotten ist
$(function() {
var data = [[
\t \t \t [1456819200000,199.8],
[1456905600000,219.24],
[1456992000000,589.68],
[1457078400000,362.88],
[1457337600000,145.56],
[1457424000000,589.68],
[1457510400000,60.48],
[1457596800000,547.2],
[1457938800000,239.4],
var ticks = data[0].map(function (point) { return point[0]; });
$.plot($("#placeholder"), [data],{ \t
xaxis: {
mode: "time",
ticks: ticks,
minTickSize: [1,"day"],
min: 1456819200000
max: 1459321200000
timeformat: "%d"
},
series: {
lines: {
show: true,
},
points: {
show: true
},
},
legend: {
show: false
},
yaxis: {
ticks: 5,
tickDecimals: 0,
}
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://people.iola.dk/olau/flot/jquery.flot.js"></script>
<div id="placeholder" style="width:600px;height:300px;"></div>
Ich verfolge - http://jsfiddle.net/JMBucknall/eQ2eb/ Geige
Ich bin nur ein Datenpunkt auf dem Chart immer
huh dest Informationen, könnten Sie bitte erwarten Sie einige mehr, welche Ausgabe Sie erarbeiten – ameenulla0007
ich sein sollte? fähig siehe Daten über das Diagramm, da die Daten vom 1. März bis zum 30. März reichen. Ich sehe keine X-Achsen, die Ticks wie im Diagramm konfiguriert zeigen. – user269867
Was ist 'sdate' und' edate' hier? diese sind undefiniert! – ameenulla0007