yang-wei / rd3

react + d3
https://yang-wei.github.io/rd3/
MIT License
319 stars 83 forks source link

Unable to use strings as x value in Line Chart #96

Open nivedhithaVenkatachalam opened 8 years ago

nivedhithaVenkatachalam commented 8 years ago

I am unable to use string values in x axis. I get the error: Error: attribute: Expected number, "MNaN,NaNLNaN,NaNL…".

I am able to use string values for x axis in Bar chart though.

LeoAref commented 7 years ago

@nivedhithaVenkatachalam, I think the lib expects a number/date, so it can use it And then you can format your x axis using xAxisFormatter