NuCivic / react-nvd3

React component for NVD3 re-usable charting library
MIT License
136 stars 44 forks source link

xTickValues is not work! #48

Open charleslxh opened 8 years ago

charleslxh commented 8 years ago

I need to reduce the x tick values, because they will overlay each other if too many, so I want to use xTickValues, but it not work.

topicus commented 8 years ago

@charleslxh You should do something like this: xAxis={{ tickValues: [2001,2002,2003}}.

A component example:

<NVD3Chart xAxis={{tickValues: [2001,2002,2003]}} .../>

I didn't tested it but it should work.

topicus commented 8 years ago

@charleslxh Can I close this?

peterporfy commented 7 years ago

I just tested and it works like that.