ankane / react-chartkick

Create beautiful JavaScript charts with one line of React
https://chartkick.com/react
MIT License
1.2k stars 58 forks source link

Google Charts props #19

Closed zeagord closed 6 years ago

zeagord commented 6 years ago

How can I props like data "type", visualization, background color? What are the supported props?

ankane commented 6 years ago

Hey @zeagord, what have you tried?

zeagord commented 6 years ago

I was trying the Google timeline charts. I want to know the list supported props, how can change the unit of the chart, etc. For example, the one in the documentation has date as a unit, what if i want to change the unit to hours or just numbers.

<Timeline data={[["Washington", "1789-04-29", "1797-03-03"], ["Adams", "1797-03-03", "1801-03-03"]]} />

ankane commented 6 years ago

@zeagord if it’s not possible with the library option, you’re better off using Google Charts directly.

zeagord commented 6 years ago

Thank you.