esnet / esnet/react-timeseries-charts
"TypeError: Event constructor: Argument 2 can't be converted to a dictionary."
- Dominant language
- JavaScript
- Stars
- 876
- Forks
- 279
- PR merge metrics
- No merged PRs in 30d
Description
# ❔Question
I try to use Event class like in the [example](http://software.es.net/react-timeseries-charts/#/example/realtime).
When I set the constructor like, for instance:
new Event( new Date(), 15 );
I get the error
"TypeError: Event constructor: Argument 2 can't be converted to a dictionary."
I don't see the problem as the [documentation](https://doc.esdoc.org/github.com/esnet/pond/class/src/event.js~Event.html) says that "The data may be any type.".
The [source code related](https://github.com/esnet/react-timeseries-charts/blob/master/src/website/packages/charts/examples/realtime/Index.js) with the example puzzles me more as it uses TimeEvent instead of Event. BTW, trying to use TimeEvent gives the same error.
Contributor guide
Research direction
Start with the realtime example in src/website/packages/charts/examples/realtime/Index.js and compare its TimeEvent usage with the Event API documentation linked in the issue. Reproduce the constructor error using new Event(new Date(), 15) and the corresponding TimeEvent call. Done means the documented constructor behavior and the working example agree, or the discrepancy is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100