Closed wustzhaohui closed 3 years ago
@wustzhaohui have you tried correctly typing your node objects by extending the baseline Node
?
import { Node } from 'circlepack-chart';
...
interface MyNode extends Node {
value: number;
}
there has another problem. It can not draw when the data is too large.
by the way do you have any contact?
this is my Telegram +8618601780983 fred zhao
@wustzhaohui if you have an issue with the rendering, could you make a quick example on codepen.io, so it can be debugged further?
@wustzhaohui if you have an issue with the rendering, could you make a quick example on codepen.io, so it can be debugged further?
I solved it by set the value type as number.
Type '{ name: string; value: number; }' is not assignable to type 'Node'. Object literal may only specify known properties, and 'value' does not exist in type 'Node'. TS2322