Closed GoogleCodeExporter closed 8 years ago
Hi!
I appreciate you took the time to report this, but I suggest you either spend a
bit more time debugging it or take it to the forum/mailing list and see if you
can get some more eyes to look at it there. I don't have time to debug it
unless it's pretty clear there's a bug in Flot and I'm afraid at this stage
with so much code, it's not so clear yet. :)
Original comment by olau%iol...@gtempaccount.com
on 3 Jun 2011 at 4:44
Original comment by dnsch...@gmail.com
on 4 Jun 2012 at 9:17
Original comment by dnsch...@gmail.com
on 10 Jul 2012 at 11:41
Has anybody looked into this issue yet? I came across a similar problem.
Whenever I change the values after initial display, the values are not updated
in the legend anymore. Debugging shows that interpolation is done properly.
When passing the values to legends.eq(i).text(series.label.replace(/=.*/, "= "
+ y.toFixed(2))); they get lost.
To make this easier to reproduce, I took the tracking.html example and added a
button to change the data of the sine curve:
<input class="changeData" type="button" value="Change data">
$("input.changeData").click(function () {
for (var i = 0; i < 140; i++) {
sin[i][1] = sin[i][1]*1 + 0.1;
}
plot = $.plot($("#placeholder"),
[ { data: sin, label: "sin(x) = -0.00"},
{ data: cos, label: "cos(x) = -0.00" } ], {
series: {lines: { show: true }},
crosshair: { mode: "x" },
grid: { hoverable: true, autoHighlight: false },
yaxis: { min: -1.2, max: 1.2 }
});
});
It also happens when I create a single data structure that contains both arrays
of values (sin and cos).
In my application on http://www.sl-naturenergie.de/datalogs/test/showdata.html,
I am displaying data from a photovoltaics installation. You can change date and
load the data of this new day, i.e. there is no way around manipulating the
data after the initial display, is there?
Thanks,
Stefan
Original comment by Stefan.L...@sl-naturenergie.de
on 26 Dec 2012 at 11:40
Original issue reported on code.google.com by
sebastia...@gmail.com
on 26 May 2011 at 11:28