react-google-charts icon indicating copy to clipboard operation
react-google-charts copied to clipboard

Add support for backgroundColor and/or backgroundColor.fill

Open karpolan opened this issue 6 years ago • 2 comments

For Material design backgroundColor or backgroundColor.fill are not supported :(

karpolan avatar Jul 19 '19 18:07 karpolan

still doesn't seem to be supported

joseph-allen avatar Nov 14 '19 13:11 joseph-allen

This actually works. Although not in full extend, it only supports string, not objects. See: https://github.com/rakannimer/react-google-charts/blob/288ce66a2d8e89012305ee3bb5c200fed0a1c9ef/src/types.ts#L58

Set the backgroundColor property in options.

Example:

<Chart  
    width={"600px"}  
    height={"400px"}  
    chartType="LineChart"  
    data={[  
          .......  
    ]}  
    options={{  
      backgroundColor: "transparent",  
    }}  
  />

lumoe avatar Sep 08 '21 12:09 lumoe