简体   繁体   English

基于时间的数据可视化?

[英]Time-based data visualization?

I am trying to build a map online using the Google Maps Javascript API that displays population in certain cities, varying with time. 我正在尝试使用Google Maps Javascript API在线构建地图,以显示某些城市的人口,并随时间而变化。 I want the visualization to look somewhat like the "Population" or "Earthquake" demos from here https://developers.google.com/maps/documentation/javascript/ under the data visualization category. 我希望可视化看起来像https://developers.google.com/maps/documentation/javascript/数据可视化类别下的“人口”或“地震”演示。

Basically, I would like it to animate through multiple weeks of data, changing the size of a circle on each city depending on the population in that city at that moment in time. 基本上,我希望它能通过数周的数据进行动画处理,并根据当时那个城市的人口来更改每个城市的圆圈大小。

I have a basic version displaying just one moment in time that I set up with the help of this tutorial: https://developers.google.com/maps/documentation/javascript/shapes#circle_add but I'm not sure how to make it animate with time. 我有一个基本版本,仅显示了我在本教程的帮助下进行的一次设置: https : //developers.google.com/maps/documentation/javascript/shapes#circle_add但我不确定如何制作随着时间的流逝。

If someone could help point me towards a tutorial that deals with this, or at least point me in the right direction, it would be greatly appreciated! 如果有人可以帮助我找到处理此问题的教程,或者至少将我指出正确的方向,将不胜感激! Thank you! 谢谢!

I am sure there are others here that will chip in and might give you more details, but I have been thinking about this as well and what comes to mind is a javascript loop to go through the dates here is an example of someone trying to solve an issue around markers, but there seems to be a loop going through an array. 我敢肯定,这里会有其他人加入其中,并可能会为您提供更多详细信息,但我也一直在考虑这一点,想到的是一个遍历日期的javascript循环,这是有人尝试解决的示例标记周围的问题,但似乎有一个遍历数组的循环。

Add infowindow to looped array of markers on google map using api v3 使用api v3将infowindow添加到Google地图上的环形标记数组

Also, here there seems to be a couple of examples though I am about to try them. 另外,尽管我要尝试这些示例,但这里似乎有几个示例。

Time series and animated graphics in Google Maps Google地图中的时间序列和动画图形

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM