2
I @ Typen/d3-Spitze bin mit mit d3 wie folgt:kann nicht @ Typen/d3-Spitze verwenden: Argument vom Typ 'Tooltip' ist nicht übertragbar
self.tooltip = d3.tip()
.attr('class', 'tooltip')
.offset([-10,0])
.html(function(d: Datapoint) {
...
})
self.svg.call(self.tooltip)
Dies wirft einen Fehler auf:
error TS2345: Argument of type 'Tooltip' is not assignable to parameter of type '(sel: Selection<SVGElement>, ...args: any[]) => any'.
Type 'Tooltip' provides no match for the signature '(sel: Selection<SVGElement>, ...args: any[]): any'
Was mache ich falsch?