When attempting to incorporate this example into Angular 6, I came across an issue in the implementation process. The problem arises in the 'fill' style setting within TypeScript.
Within the change(data)
function:
https://i.sstatic.net/VCWlo.png
Even after trying to include the <any>
tag, the issue remains unresolved.
https://i.sstatic.net/pngUg.png
The error messages provided by Angular and VSCode are as follows:
: error TS2345: Argument of type '"fill"' is not assignable to parameter of type '{ [key: string]: string | number | boolean | ((datum: any, index: number, outerIndex: number) => ...'.
No overload matches this call.
Overload 1 of 4, '(name: string, value: Primitive, priority?: string): Selection<any>', gave the following error. ....(omitted)