Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Assignable Error (touch method) #2

Open
JojiKoike opened this issue Dec 4, 2018 · 0 comments
Open

Not Assignable Error (touch method) #2

JojiKoike opened this issue Dec 4, 2018 · 0 comments

Comments

@JojiKoike
Copy link

JojiKoike commented Dec 4, 2018

In multi-lne-chart.ts line 192,
.merge(focuses)
Occurs an error as below

Argument of type 'Selection<BaseType, ChartPoint[], BaseType, {}>' is not assignable to parameter of type 'Selection<SVGCircleElement, ChartPoint[], BaseType, {}>'.
Type 'BaseType' is not assignable to type 'SVGCircleElement'.
Type 'Element' is not assignable to type 'SVGCircleElement'.
Property 'pathSegList' is missing in type 'Element'. [2345]

I've implemented as below and worked correctly.
.merge(focuses as Selection<SVGCircleElement, ChartPoint[], BaseType, {}>);

Is this correct ?

My Environment is

  • Angular : 7.0.0
  • d3 : 5.7.0
  • d3-interpolate-path : 2.0.1

Thanks and regards

@JojiKoike JojiKoike changed the title Not Assignable Error (In touch method) Not Assignable Error (touch method) Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant