bigdaddy
bigdaddy
KPCKevin Powell - Community
Created by bigdaddy on 6/24/2024 in #front-end
Line chart in react
if I'm making a line graph in react how can I make it so that the x-axis is consistent regardless of the number of elements in the array. for example if I had an array of 20 elements or an array of 10 elements. I thought about doing it as having 20 tics but if then were 40 elements each tick would go up by 2 elements but when if I don't have an whole number such as 27 each tick ends up being like 1.35 and I don't want decimals
1 replies
KPCKevin Powell - Community
Created by bigdaddy on 6/19/2024 in #front-end
React grid generation
In react if I have a grid and I want to update a single cell when clicked on is it fine to re create the whole grid every time a cell is changed or only to update the state for that specific cell. The reason I'm asking this is because if I'm updating the whole grid the code will be less complex but if I'm updating only a single cell then the code would be more complex but will be more efficient
4 replies
KPCKevin Powell - Community
Created by bigdaddy on 1/2/2024 in #front-end
Resize screen issue
No description
7 replies