esnet / react-timeseries-charts

Declarative and modular timeseries charting components for React
http://software.es.net/react-timeseries-charts
Other
856 stars 283 forks source link

"TypeError: Event constructor: Argument 2 can't be converted to a dictionary." #479

Open jaumemirallesisern opened 2 years ago

jaumemirallesisern commented 2 years ago

❔Question

I try to use Event class like in the example.

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 says that "The data may be any type.".

The source code related with the example puzzles me more as it uses TimeEvent instead of Event. BTW, trying to use TimeEvent gives the same error.