diff --git a/docs/en/map.md b/docs/en/map.md index badac72..5ebf8d8 100644 --- a/docs/en/map.md +++ b/docs/en/map.md @@ -221,7 +221,7 @@ export default { data () { this.chartSettings = { - positionJsonLink: 'https://dn-quietcoder.qbox.me/HK_geo.json', + positionJsonLink: 'https://unpkg.com/v-charts-custom-maps@0.2.1/hk-geo.json', position: 'HK', beforeRegisterMap (json) { // edit data here such as: diff --git a/docs/map.md b/docs/map.md index 0378654..3cebe11 100644 --- a/docs/map.md +++ b/docs/map.md @@ -222,7 +222,7 @@ export default { data () { this.chartSettings = { - positionJsonLink: 'https://dn-quietcoder.qbox.me/HK_geo.json', + positionJsonLink: 'https://unpkg.com/v-charts-custom-maps@0.2.1/hk-geo.json', position: 'HK', beforeRegisterMap (json) { // edit data here such as: diff --git a/examples/data/map.js b/examples/data/map.js index db8ee00..5157758 100644 --- a/examples/data/map.js +++ b/examples/data/map.js @@ -81,7 +81,7 @@ export default { }, settings: { position: 'USA', - positionJsonLink: 'https://dn-quietcoder.qbox.me/USA.json', + positionJsonLink: 'https://unpkg.com/v-charts-custom-maps@0.2.1/usa.json', specialAreas: { Alaska: { left: -131, @@ -110,7 +110,7 @@ export default { ] }, settings: { - positionJsonLink: 'https://dn-quietcoder.qbox.me/HK_geo.json', + positionJsonLink: 'https://unpkg.com/v-charts-custom-maps@0.2.1/hk-geo.json', position: 'HK', beforeRegisterMap (json) { // edit data here such as: diff --git a/src/packages/map/main.js b/src/packages/map/main.js index 26b2281..69757c9 100644 --- a/src/packages/map/main.js +++ b/src/packages/map/main.js @@ -6,6 +6,7 @@ function getTooltip (dataType, digit, dataStore, metrics, color, labelMap) { return { formatter (item) { let tpl = [] + if (!item.name) return '' tpl.push(`${item.name}
`) metrics.forEach((label, index) => { let title = labelMap[label] != null ? labelMap[label] : label