I can't see what I forgot...
I set up a dummy adapter that serves the same item (Next) with the same fields (Next and timestamp) as yours.
Then I use its data with this front-end html page and it works correctly (the PushPage/engine configuration is done in the external misc.js file; as you did note my PushPage object is called pushPage while yours is lsPage).
Note also that the positionXAxis and positionYAxis calls are made with static values; this is usually not appropriate and you have to find a way to configure them correctly accordingly with the data you're receiving (that's why in our ChartDemo we wait for the fist update before configuring them).
Please be sure also to check the jsDocs for the
ChartTable and
ChartLine classes
Try to take a look at it:
[syntax="HTML"]<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
<script language="JavaScript" src="../commons/lightstreamer/lscommons.js"></script>
<script language="JavaScript" src="../commons/lightstreamer/lspushpage.js"></script>
<style>
.lspx {
width:1px;
height:1px;
background-color: black;
}
.lspxbig {
width:1px;
height:1px;
background-color: black;
}
.lsgbox {
background: yellow;
}
</style>
</head>
<body>
<div source="lightstreamer" table="table1" item="Next" field="Next">Loading</div>
<div source="lightstreamer" table="table1" item="Next" field="timestamp">Loading</div>
<div table="graph" source="lightstreamer"></div>
<script src="../commons/custom/misc.js" type="text/javascript"></script>
<script>
var schemaChart = ["Next", "timestamp"];
var group = ["Next"];
var table1 = new OverwriteTable(group, schemaChart, "MERGE");
table1.setClearOnDisconnected(true);
table1.setClearOnRemove(true);
pushPage.addTable(table1, "table1");
var gTable = new ChartTable(group, schemaChart, "MERGE");
gTable.setSnapshotRequired(false);
gTable.setAreaClass("lsgbox");
gTable.setAreaWidth(1200);
gTable.setAreaHeight(300);
gTable.setAreaLeft(40);
gTable.setClearOnRemove(true);
gTable.setClearOnDisconnected(false);
gTable.setClearOnAdd(false);
gTable.setXAxis("timestamp", false);
gTable.positionXAxis(0, 1);
var chartLine = new ChartLine();
chartLine.setPointClass("lspxbig");
chartLine.setLineClass("lspx");
chartLine.setYAxis("Next","Next",false);//the first "Next" is the item, the second one the field
chartLine.positionYAxis(-0.2,0.2);
gTable.addLine(chartLine,"anyId");
pushPage.addTable(gTable,"graph");
</script>
</body>
</html>
[/syntax]
HTH