You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question: why can't I map an array to categories even though I seem to be doing everything correctly? For some reason, categories are displaying the numbering of the array like from 1 to 83, but I need to display the values that are stored in the array itself. I don't understand what I'm missing.
Here's my code snippet where I'm trying to pass the array to categories:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys,
I have a question: why can't I map an array to categories even though I seem to be doing everything correctly? For some reason, categories are displaying the numbering of the array like from 1 to 83, but I need to display the values that are stored in the array itself. I don't understand what I'm missing.
Here's my code snippet where I'm trying to pass the array to categories:
Here's the array I obtained through the map:
['0', '1900', '1909', '1933', '1934', '1937', '1940', '1944', '1945', '1948', '1950', '1952', '1953', '1954', '1955', '1956', '1957', '1958', '1959', '1960', '1961', '1962', '1963', '1964', '1965', '1966', '1967', '1968', '1969', '1970', '1971', '1972', '1973', '1974', '1975', '1976', '1977', '1978', '1979', '1980', '1981', '1982', '1983', '1984', '1985', '1986', '1987', '1988', '1989', '1990', '1991', '1992', '1993', '1994', '1995', '1996', '1997', '1998', '1999', '2000', '2001', '2002', '2003', '2004', '2005', '2006', '2007', '2008', '2009', '2010', '2011', '2012', '2013', '2014', '2015', '2016', '2017', '2018', '2019', '2020', '2021', '2022', '2023']
But on the graph, it's displaying numbers from 1 to 83. Why is this happening?
Beta Was this translation helpful? Give feedback.
All reactions