antvis/G2

[v5]what the base type for .line() .interval #4672

coader posted onGitHub

I have a chart and it whould dynamic change type: let mark:???? if (type=='line') mark=chart.line() else if (type=='interval') mark=chart.interval()

how to define the mark type in typescript?


That's a good issue. The base type of mark should be exported. @pepper-nice

And it may change the name from MarkBase to Mark.

posted by pearmini about 2 years ago

tks, it will be useful to encapsulate chart as vue component

posted by coader about 2 years ago

Fund this Issue

$0.00
Funded

Pull requests