<div class="row">
<div class="col-md-4">
<!-- Content card -->
<div class="content-card">
<h2 class="content-card-title">
Global university ranking
</h2>
<ods-dataset-context context="shangairankinguniversity"
shangairankinguniversity-domain="public"
shangairankinguniversity-dataset="shanghai-world-university-ranking">
<ods-chart align-month="true">
<ods-chart-query context="shangairankinguniversity"
field-x="country"
maxpoints="10"
sort="serie1-1">
<ods-chart-serie chart-type="treemap"
function-y="COUNT"
color="range-Paired"
scientific-display="true">
</ods-chart-serie>
</ods-chart-query>
</ods-chart>
</ods-dataset-context>
</div>
</div>
<div class="col-md-8">
<!-- Content card -->
<div class="content-card">
<h2 class="content-card-title">
Ranking on a map
</h2>
<ods-dataset-context context="rankingmap"
rankingmap-domain="public"
rankingmap-dataset="shanghai-world-university-ranking">
<ods-map no-refit="true"
scroll-wheel-zoom="false"
display-control="false"
search-box="false"
toolbar-fullscreen="false"
toolbar-geolocation="true"
basemap="jawg.streets"
location="2,31.31678,4.10444"
display-legend="false">
<ods-map-layer-group>
<ods-map-layer context="rankingmap"
color-numeric-ranges="{'42.8':'#FC9272','84.6':'#E6755C','126.4':'#D05946','168.2':'#BA3D30','210.0':'#A5211B'}"
color-numeric-range-min="1"
picto="ods-circle"
show-marker="true"
display="choropleth"
function="COUNT"
shape-opacity="0.5"
point-opacity="1"
border-color="#FFFFFF"
border-opacity="1"
border-size="1"
border-pattern="solid"
caption="true"
title="Shangai ranking universities since 2003" size="4"></ods-map-layer>
</ods-map-layer-group>
</ods-map>
</ods-dataset-context>
</div>
</div>
</div>
/* Class used to center the content within the card */
.centered-card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
/* Content Card
========================================================================== */
.content-card {
background-color: var(--boxes-background);
padding: 26px;
border-radius: 4px;
margin-bottom: 20px;
height: 100%;
}
.content-card-title {
color: var(--titles);
font-size: 1.2rem;
line-height: 1.5;
font-weight: normal;
margin-top: 0;
margin-bottom: 13px;
max-width: 100%;
}
.content-card-description {
color: var(--text);
font-size: 1rem;
line-height: 1.5;
font-weight: normal;
margin-top: 0;
margin-bottom: 26px;
max-width: 100%;
}
.content-card-icon {
color: var(--highlight);
font-size: 2rem;
margin-bottom: 13px;
max-width: 100%;
}
.content-card-link {
color: var(--links);
font-weight: bold;
transition: all .2s;
opacity: 1;
max-width: 100%;
}
.content-card-link:hover {
opacity: .7;
text-decoration: none;
}
.content-card-button {
color: var(--highlight);
border: 1px solid var(--highlight);
background: transparent;
display: inline-block;
text-align: center;
font-size: .867rem;
border-radius: 4px;
padding: .5rem 1.15rem;
text-decoration: none;
transition: all .2s;
}
.content-card-button:hover {
background-color: var(--highlight);
color: #FFFFFF;
text-decoration: none;
}