const streamSource = new DataConnector.Stream("ws://..."); streamSource.onData((newRow) => chart.appendData(newRow); // add point chart.animate(300); // transition );