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'm building a statistics view for data from an API. I'm using React and TypeScript. The data is a list of elements with this format:
export interface Person {
age: number;
address: { street: string; number: number };
name: string;
}
I have no idea how to set up the necessary configurations to use charts with this data. For example, how would I create a pie chart that shows the ages of all the people in the list? The hook is already set up, but it's the data management that I don't know how to handle.
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
-
I'm building a statistics view for data from an API. I'm using React and TypeScript. The data is a list of elements with this format:
export interface Person {
age: number;
address: { street: string; number: number };
name: string;
}
I have no idea how to set up the necessary configurations to use charts with this data. For example, how would I create a pie chart that shows the ages of all the people in the list? The hook is already set up, but it's the data management that I don't know how to handle.
Beta Was this translation helpful? Give feedback.
All reactions