You set up a placeholder div. Then you create a javascript somewhere
after creating the div (here's the example js) - you'll just need to
create the script dynamically (specifically, d1, d2, d3 here) with
your dynamic data:
<script type="text/javascript">
$(function () {
var d1 = [];
for (var i = 0; i < 14; i += 0.5)
d1.push([i, Math.sin(i)]);
var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];
// a null signifies separate line segments
var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]];
$.plot($("#placeholder"), [ d1, d2, d3 ]);
});
</script>
--
Tracy Aichele
tracy....@gmail.com
517-648-1967
take a look at thechels.co.uk for using php and flot.
i can provide code examples if you wish.
BR
2012/2/22 gstar <gary....@gmail.com>:
--
Best regards,
Igor Ganin