Commit 0128a2c7 authored by Rafael S Castilho's avatar Rafael S Castilho
Browse files

Education page on quotas updates to take PNAD continua

parent 71e5cacc
......@@ -22,6 +22,7 @@ along with Portal-SMPPIR-React. If not, see <https://www.gnu.org/licenses/>.
import React, { Component } from 'react';
import {Col, Row, Card, Icon } from 'react-materialize';
import { Collection, CollectionItem } from 'react-materialize'
import MapPanel from '../Components/MapPanel';
import Loading from '../Components/Loading';
import AppModal from '../Components/AppModal';
......@@ -32,7 +33,7 @@ import { getServerURL, getRegionState, sleep } from '../enviroment';
import './Styles/QuotasEducation.css'
import { Store } from '../Store';
const basicFilter = 'type_of_school:"2",type_of_public_school:"6",level_of_education:"5"';
const basicFilter = 'type_of_school:"2",level_of_education:"8"';
const serverURL = getServerURL();
const type = "education";
......@@ -132,6 +133,13 @@ class QuotasEducation extends Component {
</Col>
</Row>
<div id={'educationChart'}>
<div id={'pnad_cont-info'}>
<Collection>
<CollectionItem>
Devido a troca da fonte de dados da PNAD para a PNAD continua os dados referentes a educação entre 2009 e 2015 vem de uma fonte diferente dos dados entre 2016 e 2018.
</CollectionItem>
</Collection>
</div>
<BuildBarPNAD
data={this.state.totalRate}
visited={page}
......@@ -191,10 +199,10 @@ class QuotasEducation extends Component {
}
loadData(filter='') {
var allBlackPeopleRoute = 'pnad?filter=ethnic:"4"' + filter
var allWhitePeopleRoute = 'pnad?filter=ethnic:"2"' + filter
var allBlackPeopleResearchRoute = 'pnad?filter=ethnic:"4",' + basicFilter + filter
var allWhitePeopleResearchRoute = 'pnad?filter=ethnic:"2",' + basicFilter + filter
var allBlackPeopleRoute = 'pnad?filter=ethnic:"2"' + filter
var allWhitePeopleRoute = 'pnad?filter=ethnic:"1"' + filter
var allBlackPeopleResearchRoute = 'pnad?filter=ethnic:"2",' + basicFilter + filter
var allWhitePeopleResearchRoute = 'pnad?filter=ethnic:"1",' + basicFilter + filter
axios.get(`${serverURL}${allBlackPeopleRoute}`)
.then(res => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment