Skip to content

Instantly share code, notes, and snippets.

@nivekmai
Created September 21, 2022 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nivekmai/d9b493291d1569fd93f4027df2ad51ab to your computer and use it in GitHub Desktop.
Save nivekmai/d9b493291d1569fd93f4027df2ad51ab to your computer and use it in GitHub Desktop.
YzLxYRV
<script src="https://cdn.jsdelivr.net/npm/svg-pan-zoom@3.6.1/dist/svg-pan-zoom.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/StephanWagner/svgMap@v2.7.2/dist/svgMap.min.js"></script>
<link href="https://cdn.jsdelivr.net/gh/StephanWagner/svgMap@v2.7.2/dist/svgMap.min.css" rel="stylesheet">
<div id="svgMap"></div>
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 },
}
}
});
.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