import { useState, useEffect } from "react"; import ParentSize from "@visx/responsive/lib/components/ParentSize"; import PieChart from "../../components/charts/pieChart/Pie"; import { Poi } from "../../redux/types/Poi"; import LegendChart from "../../components/generalInformation/legend/Legend"; import CloudWord from "../../components/charts/wordCloudChart/CloudWord"; import { characterizeSocioDemographicData } from "../../algorithm/WordCloud"; type DemographicsSectionProps = { selectedPoi: Poi; }; const DemographicsSection: React.FC = ({ selectedPoi, }) => { return (
Total Socio Demographics
{({ width, height }) => ( )}
Masculine Socio Demographics
{({ width, height }) => ( item.gender.toUpperCase() === "MALE" )} width={width} height={height} flag={1} /> )}
Feminine Socio Demographics
{({ width, height }) => ( item.gender.toUpperCase() === "FEMALE" )} width={width} height={height} flag={2} /> )}
{({ width, height }) => ( )}
{({ width, height }) => ( )}
); }; export default DemographicsSection;