Category : recharts

complete code at https://pastebin.com/EymDdLHk useEffect(() => { fetch("http://localhost:8080/animals/animal/client?clientId=" + user.id, { method: "get", headers: { "Authorization": `${token}`, }, }) .then(res => res.json()) .then( (result) => { var mydata = (result[0].peso) data.push(mydata) // var isArray = Array.isArray(data); }, (error) => { setIsLoaded(true); setError(error); } ) }, []) chart <LineChart width={650} height={300} data={data} margin={{ top: 20, right: ..

Read more

I want to customise YAxis but have no idea is it possible to do with recharts lib. Receiving next data: { note: "C3", frequency: "1337", time: "13.37" }. So I want to see the notes like a chart labels and use frequency for changing chart along Y axis. Somehow need to get current frequency range ..

Read more