src/containers/weather_list.js
// cityData would be each city with a list of informations returned from the array.map interection (this.props.weather.map)
cityData would be each city with a list of informations returned from the array.map interection (this.props.weather.map)
cityData would be each city with a list of informations returned from the array . map interection ( this . props . weather . map )
renderWeather(cityData) {
        const name = cityData.city.name;
        const temps = cityData.list.map(weather => weather.main.temp);
        const pressures = cityData.list.map(weather => weather.main.pressure);
        const humidities = cityData.list.map(weather => weather.main.humidity);
        const {lon, lat} = cityData.city.coord;
         console.log(temps);
        return (
            <tr key={name}>
                {}
                <td><GoogleMap lon={lon} lat={lat} /></td>
                <td><Chart data={temps} color="orange" units="K" /></td>
                <td><Chart data={pressures} color="green" units="hPa"/></td>
                <td><Chart data={humidities} color="black" units="%"/></td>
            </tr>
        );
    }
renderWeather ( cityData ) { const name = cityData . city . name ; const temps = cityData . list . map ( weather => weather . main . temp ) ; const pressures = cityData . list . map ( weather => weather . main . pressure ) ; const humidities = cityData . list . map ( weather => weather . main . humidity ) ; const { lon , lat } = cityData . city . coord ; console . log ( temps ) ; return ( < tr key = { name } > { } < td > < GoogleMap lon = { lon } lat = { lat } / > < / td > < td > < Chart data = { temps } color = "orange" units = "K" / > < / td > < td > < Chart data = { pressures } color = "green" units = "hPa" / > < / td > < td > < Chart data = { humidities } color = "black" units = "%" / > < / td > < / tr > ) ; }
cityData would be each city with a list of informations returned from the array.map interection (this.props.weather.map)
cityData would be each city with a list of informations returned from the array . map interection ( this . props . weather . map )
/* <td>{name}</td> */