Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
090312bf
Unverified
Commit
090312bf
authored
Jan 06, 2021
by
Karishma Chadha
Committed by
GitHub
Jan 06, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4736 from seotts/world-map-fix
World map fixes - Border thickness, Eswatini, remove unused css
parents
ea4317f5
b7cf8249
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
15 deletions
+7
-15
src/components/world-map/world-map.jsx
src/components/world-map/world-map.jsx
+2
-5
src/views/annual-report/annual-report.jsx
src/views/annual-report/annual-report.jsx
+5
-4
src/views/annual-report/annual-report.scss
src/views/annual-report/annual-report.scss
+0
-6
No files found.
src/components/world-map/world-map.jsx
View file @
090312bf
...
...
@@ -20,10 +20,7 @@ const WorldMap = props => (
locations
:
props
.
countryNames
,
z
:
props
.
colorIndex
,
text
:
props
.
countryData
,
hovertemplate
:
'
<b> %{location} </b>
'
+
'
<br>
'
+
'
%{text:,.0f}
'
+
'
<extra></extra>
'
,
hovertemplate
:
'
%{text}<extra></extra>
'
,
hoverlabel
:
{
bgcolor
:
'
#FFF
'
,
bordercolor
:
'
#5B6671
'
,
...
...
@@ -38,7 +35,7 @@ const WorldMap = props => (
marker
:
{
line
:
{
color
:
'
#FFFF
'
,
width
:
1
width
:
.
4
}
}
}
...
...
src/views/annual-report/annual-report.jsx
View file @
090312bf
...
...
@@ -52,10 +52,11 @@ const SECTION_NAMES = {
};
// Constants used for world map data processing/formatting for use with Plotly
const
countryKeys
=
Object
.
keys
(
CountryUsage
);
const
countryNames
=
countryKeys
.
map
(
key
=>
CountryUsage
[
key
].
display
);
const
countryData
=
countryKeys
.
map
(
key
=>
CountryUsage
[
key
].
count
);
const
colorIndex
=
countryKeys
.
map
(
key
=>
CountryUsage
[
key
][
'
log count
'
]);
const
countryNames
=
Object
.
keys
(
CountryUsage
);
const
countryData
=
countryNames
.
map
(
key
=>
`<b>
${
CountryUsage
[
key
].
display
}
</b><br>
${
CountryUsage
[
key
].
count
.
toLocaleString
(
'
en
'
)}
`
);
const
colorIndex
=
countryNames
.
map
(
key
=>
CountryUsage
[
key
][
'
log count
'
]);
// Create the div given a list of supporter names,
// this will contain two columns of names either of equal size
...
...
src/views/annual-report/annual-report.scss
View file @
090312bf
...
...
@@ -2681,12 +2681,6 @@ p {
background-color
:
$box-shadow-light-gray
;
}
}
// Would be good to see if this works in RTL...
[
dir
=
"rtl"
]
a
{
margin-left
:
10px
;
margin-right
:
0px
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment