react-d3 / react-d3-tooltip

react-d3 tooltip implementation
http://www.reactd3.org/docs/tooltip/
23 stars 22 forks source link

Invalid prop `xScale` of value `band` #22

Open dmk23 opened 8 years ago

dmk23 commented 8 years ago

Using the latest version from NPM and seeing this error:

warning.js?8a56:45 Warning: Failed propType: Invalid prop `xScale` of value `band`
supplied to `Grid`, expected one of
["linear","identity","sqrt","pow","log","quantize","quantile","ordinal","time"].
Check the render method of `XGrid`.

This is clearly a bug since I did pass xScale: 'ordinal' to props.

Additionally the resulting chart seems to get drawn on the wrong scale. For example a series [1..5] actually comes out to start at 0.5 and ends at 4.5 ...