Thanks to your good angular with d3 sample program.
But, I've found error as below.
In multi-lne-chart.ts line 117,
.merge(charts)
Occurs an error as below
Argument of type 'Selection<BaseType, ChartPoint[], BaseType, {}>' is not assignable to parameter of type 'Selection<SVGPathElement, ChartPoint[], BaseType, {}>'.
Type 'BaseType' is not assignable to type 'SVGPathElement'.
Type 'Element' is not assignable to type 'SVGPathElement'.
Property 'pathSegList' is missing in type 'Element'. [2345]
I've implemented as below and worked correctly.
.merge(charts as Selection<SVGPathElement, 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
Thanks to your good angular with d3 sample program.
But, I've found error as below.
In multi-lne-chart.ts line 117,
.merge(charts)Occurs an error as below
I've implemented as below and worked correctly.
.merge(charts as Selection<SVGPathElement, ChartPoint[], BaseType, {}>);Is this correct ?
My Environment is
Thanks and regards