I'm trying to display a LineChart in Recharts where the data is numeric and the xAxis is also numeric but it is implicit (not explicitly stored in the data).
This jsFiddle illustrates the issue.
If I change the <XAxis />
to <XAxis type="numeric" />
, it still doesn't display correctly, in fact the lines are not drawn at all (but the tooltip is there). Similarly adding the domain to the XAxis does not fix the problem.
I think there's just a misunderstanding here. I don't see numeric as a type property in the documentation, but I do see number
as a property. http://recharts.org/en-US/api/XAxis#type
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.