antvis/G2

Support customing the fill attribute of the chart component #6534

HelloAny posted onGitHub

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

What problem does this feature solve?

https://github.com/antvis/F2/blob/e3659d21db9b7c540cad7f9e75664ee564a7028f/packages/f2/src/chart/index.tsx#L357

  1. Help users more flexibly modify the background of the Chart component.
  2. When I adapt to the company's hybrid container, will get some error when useing 'transparent'.

What does the proposed API look like?

const { fillStyle } = props;

  <group
        ref={this.coordRef}
        style={{
          width: width,
          height: height,
          fill: fillStyle || 'transparent',
        }}
      >
...
 </group>

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


Sry, I make a mistake. The issue should be in F2 repo.😥

posted by HelloAny 5 months ago

Fund this Issue

$0.00
Funded

Pull requests