react-timeseries-charts icon indicating copy to clipboard operation
react-timeseries-charts copied to clipboard

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

Open jaumemirallesisern opened this issue 4 years ago • 0 comments

❔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.

jaumemirallesisern avatar Jul 21 '21 15:07 jaumemirallesisern