Closed hp8wvvvgnj6asjm7 closed 5 years ago
Also your example page says:
const time = getNextTime();
const event = new Event(t, value);
What is t? t does not exist.
@hp8wvvvgnj6asjm7 sorry, it's time
instead of t
Thank you, but I really cant even instantiate new Event. . getting errors
Cannot construct Event instances directly
Using webpack, maybe an issue with it?
hmm, we've had a few people have issues with webpack in the past but I believe we fixed that. Here's one of the issues - https://github.com/esnet/react-timeseries-charts/issues/233
No my charts are rendering correctly. I just can't use " new Event "
import { TimeSeries, Pipeline, Stream, EventOut, Event } from "pondjs";
I'm not being able to recreate the issue. Here's a working example - https://codesandbox.io/s/8nnm2kzl20
Maybe, see what versions of pondjs are you using?
The non typescript version, which should be compatible with react-timeseries-charts
Your examples are written in a very confusing manner, they say I have to create a new Event( ) but actually i need to choose from another event type inside pondjs.
I already had the suspicion that there was something odd with it.
Events
To do this, each event is generated semi-randomly, but they could be coming from a real source. We add a new Event for each minute, but emit 5 per second to speed up the simulation. Essentially we do this:
import { Event } from "pondjs";
const value = getRandomValue(); const time = getNextTime();
const event = new Event(t, value); This is declared very literally, like I would have to write it down exactly like that.
Thanks for clearing this up.
I follow the example page using pondjs to create a realtime chart