A Pen by Kevin Christensen on CodePen.
Created
September 21, 2022 23:45
-
-
Save nivekmai/d9b493291d1569fd93f4027df2ad51ab to your computer and use it in GitHub Desktop.
YzLxYRV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/svg-pan-zoom.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/gh/StephanWagner/[email protected]/dist/svgMap.min.js"></script> | |
<link href="https://cdn.jsdelivr.net/gh/StephanWagner/[email protected]/dist/svgMap.min.css" rel="stylesheet"> | |
<div id="svgMap"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new svgMap({ | |
targetElementID: "svgMap", | |
colorMax: "#00a884", | |
colorMin: "#FFFFFF", | |
colorNoData: "#FFFFFF", | |
data: { | |
data: { | |
rollout: { | |
name: "Rollout Percentage", | |
format: "{0}% rolled out", | |
thousandSeparator: ',', | |
thresholdMax: 100, | |
thresholdMin: 1, | |
} | |
}, | |
applyData: "rollout", | |
values: { | |
GH: { rollout: 100 }, | |
PE: { rollout: 100 }, | |
MY: { rollout: 100 }, | |
CA: { rollout: 100 }, | |
BO: { rollout: 100 }, | |
SA: { rollout: 100 }, | |
IR: { rollout: 100 }, | |
IQ: { rollout: 100 }, | |
OM: { rollout: 100 }, | |
AR: { rollout: 100 }, | |
CL: { rollout: 100 }, | |
CO: { rollout: 100 }, | |
} | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.svgMap-tooltip-content-wrapper { | |
font-family: sans-serif | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment