react-timeseries-charts
react-timeseries-charts copied to clipboard
"TypeError: Event constructor: Argument 2 can't be converted to a dictionary."
❔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.