All Projects → maguayo → vue-map-chart

maguayo / vue-map-chart

Licence: MIT license
VueJS map chart component

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vue-map-chart

Vue Visualization
Vue 结合 D3.js 进行数据可视化开发的练手案例
Stars: ✭ 125 (+362.96%)
Mutual labels:  map, charts
Hajk
A modern, full-featured OpenLayers based map viewer and editor
Stars: ✭ 65 (+140.74%)
Mutual labels:  map
leaflet-tag-filter-button
Adds tag filter control for layers (marker, geojson features etc.) to LeafLet.
Stars: ✭ 48 (+77.78%)
Mutual labels:  map
DaoHang
一个基于百度地图api的demo,采用Material Design设计界面,有全景图、室内地图等功能。
Stars: ✭ 15 (-44.44%)
Mutual labels:  map
php-sorted-collections
Sorted Collections for PHP
Stars: ✭ 22 (-18.52%)
Mutual labels:  map
sledge-formats
C# parsers and formats for Half-Life 1 and related engines.
Stars: ✭ 35 (+29.63%)
Mutual labels:  map
SXAU-guide
微信小程序校园导航地图——小标识
Stars: ✭ 12 (-55.56%)
Mutual labels:  map
mxmaps
An R package for making maps of Mexico
Stars: ✭ 60 (+122.22%)
Mutual labels:  map
leaflet.minichart
Leaflet.minichart is a leaflet plugin for adding to a leaflet map small animated charts
Stars: ✭ 27 (+0%)
Mutual labels:  map
game-map-editor
game-map-editor
Stars: ✭ 17 (-37.04%)
Mutual labels:  map
US-chartbook
Automated PDF containing charts, tables, maps, and analysis of the US economy
Stars: ✭ 16 (-40.74%)
Mutual labels:  charts
gauge-chart
Gauge Chart Library
Stars: ✭ 45 (+66.67%)
Mutual labels:  charts
Mermaid
Provides a parser function to generate diagrams and flowcharts with the help of the mermaid script language
Stars: ✭ 27 (+0%)
Mutual labels:  charts
UCharts
UCharts allows creating radar charts, pie charts, half pie chart in your Unity3d Games.
Stars: ✭ 33 (+22.22%)
Mutual labels:  charts
coin-map-android
Easily find places to spend sats anywhere on the planet
Stars: ✭ 23 (-14.81%)
Mutual labels:  map
GoogleMap Demo
GoogleMap一些常用API总结库
Stars: ✭ 24 (-11.11%)
Mutual labels:  map
TomScottMap
A unofficial map of the videos created by Tom Scott. See his Youtube channel for the complete list of videos (including those that are not geo-referenceable).
Stars: ✭ 30 (+11.11%)
Mutual labels:  map
navdatareader
Navdatareader is a command line tool that uses the atools fs/bgl and fs/writer to store a full flight simulator scenery database into a relational database like Sqlite or MySql.
Stars: ✭ 35 (+29.63%)
Mutual labels:  map
openfairdb
Open Fair DB is the CreativCommons Backend of Kartevonmorgen.org
Stars: ✭ 53 (+96.3%)
Mutual labels:  map
tianditu-python
天地图切片(瓦片)以及POI下载
Stars: ✭ 92 (+240.74%)
Mutual labels:  map

Vue Map Chart

A Vue JS Component for displaying dynamic data on a world map.

preview

Credits

Installation

Install via npm using npm install vue-map-chart

import MapChart from 'vue-map-chart'

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,
  "GB": 400,
}

Where the key is a country's ISO 3166 Code and the value is a numerical value associated with it.

Example:

import MapChart from 'vue-map-chart'

<MapChart
  :countryData="{'US': 4, 'CA': 7, 'GB': 8, 'IE': 14, 'ES': 21}"
  highColor="#ff0000"
  lowColor="#aaaaaa"
  countryStrokeColor="#909090"
  defaultCountryFillColor="#dadada"
  />

API

Props Description Optional Type
countryData See Usage Section above for details no Object
lowColor Countries with lower values will be colored more strongly with this color yes String
highColor Countries with higher values will be colored more strongly with this color yes String
chromaScaleOn If True chromaScale of color, if false countries with value will be filled of the hightColor. By default is True yes Boolean
defaultCountryFillColor Countries with no data will default to this color yes String
countryStrokeColor The color of the border around countries yes String
legendBorderColor The color of the legend's border yes String
legendBorderRadius The radius of the legend's border yes Number
legendHeaderBackgroundColor The background color of the legend's header yes String
legendContentBackgroundColor The background color of the legend's content yes String
legendFontColorHeader The font color of the legend's header yes String
legendFontColorContent The font color of the legend's content yes String
legendBoxShadow If true, a box shadow is display yes Boolean
showLegend (WIP) If true, when you select a country a legend will appear on the screen WIP Boolean
Events Description Parameter
hoverCountry Triggered when the device pointer hovers over a country country object (from bound countryData prop)
hoverLeaveCountry Triggered when the device pointer stops hovering a country (none)

Roadmap

  • Change Map type (World, Europe, single country, etc...) (WIP)
  • Click events
  • More customization
  • Export PDF/CSV
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].