Commit 9c981b48 authored by shabai517's avatar shabai517
Browse files

detailed map visualization finished

parent c93fedd2
......@@ -124,7 +124,7 @@
return {
sunburstPrideApi:'http://ves-pg-41:9020/stats/SUBMISSIONS_PER_MONTH',
sankeyPrideApi:'http://ves-pg-41:9020/stats/SUBMISSIONS_PER_MONTH',
mapPrideApi:'http://ves-pg-41:9020/stats/SUBMISSIONS_PER_MONTH',
mapPrideApi:'http://ves-pg-41:9020/stats/SUBMISSIONS_PER_COUNTRY',
linePrideYearApi:'http://ves-pg-41:9020/stats/SUBMISSIONS_PER_YEAR',
linePrideMonthApi:'http://ves-pg-41:9020/stats/SUBMISSIONS_PER_MONTH',
sunburstPrideShow:true,
......@@ -186,13 +186,12 @@
.get(this.mapPrideApi)
.then(function(res){
this.mapPrideShow=false;
this.$bus.$emit('show-map', res.body.speciesCounts);
this.$bus.$emit('show-map', res.body);
},function(err){
});
},
facetsTypeChange(facets){
console.log('facets',facets);
this.piePrideShow=true;
this.$http
.get('http://ves-pg-41:9020/stats/SUBMISSIONS_PER_'+facets)
......
......@@ -492,7 +492,7 @@ export default {
label: {
emphasis: {
position: 'right',
show: true
show: false
}
},
itemStyle: {
......@@ -509,7 +509,7 @@ export default {
},
methods:{
setOptions(data){
console.log('map',data);
console.log('map',this.options.series[0].data);
}
},
created(){
......@@ -517,6 +517,9 @@ export default {
},
beforeCreate:function(){
this.$bus.$off('show-simple-map');
},
mounted(){
}
}
</script>
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment