antvis/G2

how to dynamic set chart padding or another attributes? #3742

JobinJia posted onGitHub

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

if create a chart, sometimes need to change the chart padding or another config attributes. maybe refactor changeSize(width, height) function to changeConfig(ChartCfg) then the initial config can be changed with runtime ?

What does the proposed API look like?

changeConfig(config: ChartCfg)

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


chart.padding = [/*...*/];
posted by hustcc over 2 years ago

Fund this Issue

$0.00
Funded

Pull requests