vue-geo-heat-maps
| Install | |
|---|---|
npm install vue-geo-heat-maps |
|
| Latest Version: | 0.2.13 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Nov 12, 2020 |
| Links: | npm |
Vue Geo Heat Maps
Forked from ghrehh's package vue-world-map A Vue JS Component for displaying dynamic data on a world map.
Map from amCharts
Installation
Install via npm using npm install vue-geo-heat-maps
Usage
This component is most useful in creating a heat map for various countries. And will color countries differently based on a props passed.
The component requires a prop of countryData to be passed to it, which is a JS
object formatted like so.
{
US: 100,
CA: 120,
UK: 400,
}
For Individual Countries pass the ISO 3166 Code to the map prop. If nothing is passed the default is "world".
map="US"
for US the values for the states can be set like this:
{
US_CA: 100,
CA_NY: 120,
UK_TX: 400,
}
note: Only US country map is available. Other countries are coming soon..
Where the key is a country's ISO 3166 Code and the value is a numerical value associated with it.
Example
<template>
<div>
<Map
:countryData="{ US: 300, CA: 400 }"
/>
<Map
map="US"
:countryData="{ US_CA: 300, US_NJ: 400 }"
/>
</div>
</template>
<script>
import map from 'vue-geo-heat-maps'
.
.
.
API
| Props | Description | Optional |
|---|---|---|
| countryData | See Usage Section above for details | no |
| lowColor | Countries with lower values will be colored more strongly with this color | yes |
| highColor | Countries with higher values will be colored more strongly with this color | yes |
| defaultCountryFillColor | Countries with no data will default to this color | yes |
| countryStrokeColor | The color of the border around countries | yes |
Related Packages
A calendar heatmap Vuejs component built on SVG, inspired by github's contributi...
A lightweight calendar heatmap Vue 3 component built on SVG, inspired by julienr...
A lightweight calendar heatmap Vue 3 component built on SVG, inspired by julienr...
A Vue JS component for displaying a world map with colored countries and overlay...
A lightweight, customizable activity calendar component for Vue 3 — like GitHub'...
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.2.13 | ^2.5.2 | MIT | |
| 0.2.12 | ^2.5.2 | MIT | |
| 0.2.11 | ^2.5.2 | MIT | |
| 0.2.10 | ^2.5.2 | MIT | |
| 0.2.9 | ^2.5.2 | MIT | |
| 0.2.8 | ^2.5.2 | MIT | |
| 0.2.7 | ^2.5.2 | MIT | |
| 0.2.6 | ^2.5.2 | MIT | |
| 0.2.5 | ^2.5.2 | MIT | |
| 0.2.4 | ^2.5.2 | MIT | |
| 0.2.3 | ^2.5.2 | MITs | |
| 0.2.2 | ^2.5.2 | ISC | |
| 0.2.1 | ^2.5.2 | ISC | |
| 0.2.0 | ^2.5.2 | ISC | |
| 0.1.2 | ^2.5.2 | ISC | |
| 0.1.1 | ^2.5.2 | ISC |