0

I have been following react google charts for visualization as documented here. I want a vertical bar chart so I am stuck with the material chart option.

However, none of the background color options apply to a material chart. How do I add a border and background to my chart then?

VITTHAL BHANDARI
  • 139
  • 2
  • 5
  • 15
  • you can use the classic `ColumnChart` for a vertical bar chart... – WhiteHat Jun 01 '21 at 20:45
  • @WhiteHat yes. I figured it out yesterday. Thing is, literally no documentation on google explicitly uses chartType="ColumnChart" option in any example. So I did not know that it even existed. Thank you for the comment though. – VITTHAL BHANDARI Jun 03 '21 at 06:06
  • cheers! also, when / if you are forced to use a material chart, the following issue lists all the options that are not supported by material charts --> [Tracking Issue for Material Chart Feature Parity #2143](https://github.com/google/google-visualization-issues/issues/2143) – WhiteHat Jun 03 '21 at 14:46

1 Answers1

0

Use:

chartType="ColumnChart"
4b0
  • 21,981
  • 30
  • 95
  • 142
VITTHAL BHANDARI
  • 139
  • 2
  • 5
  • 15