-
-
Save zthomas/44e4366d00de09d93d52f77b41988623 to your computer and use it in GitHub Desktop.
React Google Charts - Material Bar Chart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Chart | |
chartType="Bar" | |
data={[ | |
['Year', 'Sales'], | |
['2014', 1000], | |
['2015', 1200], | |
['2014', 1000], | |
['2015', 1200], | |
['2014', 1000], | |
['2015', 1200], | |
['2014', 1000], | |
['2015', 1200], | |
['2014', 1000], | |
['2015', 1200], | |
]} | |
height="400px" | |
options={{ | |
bars: 'vertical', // Required for Material Bar Charts. | |
backgroundColor: 'transparent', | |
tooltip: { trigger: 'none' }, | |
legend: { position: 'none' }, | |
colors: ['white'], | |
vAxis: { | |
format: 'currency', | |
}, | |
}} | |
></Chart> | |
'svg rect': { | |
fill: 'none', | |
}, | |
'svg path': { | |
fill: 'rgba(255,255,255, 0.2)', | |
}, | |
'svg line': { | |
stroke: 'rgba(255,255,255, 0.2)', | |
strokeDasharray: 4, | |
}, | |
'svg text': { | |
fill: 'white', | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment