I am generating a line chart with d3. It works, but typescript code complain about a property not exists in vs.
Property \'x\' does not exist on type
Here is the solution. I need to use generics: