Open rob-cleeia opened 3 months ago
I had the same problem, when temporarily removing LineChart everything was fine.
This issue is happening to me when the data is empty ([]) and I hover mouse over the graph, when there is data is working fine. I'm upgrading from 0.79.1 to 0.88.0, it was working fine in the old version.
Edit:
@plouc I added useMesh={data[0]?.data?.length > 1}
to prevent the app break, but as I mentioned before this was working fine on the last version that I used 0.79.1
Describe/explain the bug We're using Nivo/Line (responsive) to render some line graphs. The data we use is nondeterministic, so we validate the data before we send it to the graph. Based on the documentation (here: https://nivo.rocks/line/), we use the following type for line graph data:
However, we've recently noticed that if we have the
x
axis as anumber
and they
axis as astring
, withuseMesh
enabled, it throws a client side exception.To Reproduce Render a Nivo/Line Graph with
useMesh
enabled, with data containingx
axis as a number, andy
axis as a string. EG:Steps to reproduce the behaviour:
Expected behaviour Should not cause a client side error.
Screenshots Chrome: FireFox:
Desktop (please complete the following information - Not sure if this at all relevant, but okay):
Additional context