The data I'm trying to plot in Power BI is of the format:
[SourceLatitude, SourceLongitude, DestLatitude, DestLongitude, Weight].
For every such row in the database, I want to draw a line between the two points with coordinates P1: (SourceLatitude, SourceLongitude) and P2:(DestLatitude, DestLongitude).
When I try to plot a map visualization, I can plot the points but how do I connect them? I'm using power BI for the first time. On surfing, some people have suggested to use Routemap custom visualization. Installed that but it needs some time parameter to be given which my dataset doesn't need.
Any pointers?
Related
I've been working with some crime data from Kaggle. I've been able to produce bar charts and scatter plots grouped by police district. The data has individual records for each incident and the lat/long.
https://www.kaggle.com/datasets/currie32/crimes-in-chicago
I started working with maps and managed to get Tableau to plot every crime location on the base map with filters for year and "primary type". Now I want to create a choropleth by police district. I've tried linking the data source to the shapefile in Data > Edit Blend Relationship then link the district numbers. Not sure of the next steps.
I have been using the shapefile from this site:
https://data.cityofchicago.org/Public-Safety/Boundaries-Police-Districts-current-/fthy-xz3r
I haven't been able to find any tutorials about building a choropleth using a custom spatial file. Any suggestions?
My goal is to render time-series data from set locations on a map. Essentially, I have about 30 predefined (static) locations in Switzerland from which I will be receiving real-time data. The data itself is relatively simple, just the signal/noise ratio of the signal we're receiving, which should be updated every few seconds or every minute. I am using InfluxDB as my database. Are there any specific setups I should be using for this kind of visualization?
My first question is: is it best to use the worldmap panel or the geomap panel at this time? I seem to be finding more information/documentation on the worldmap panel even though i have also read that geomap is (or at least will be) its replacement.
Second, I assume that since I'm using time-series data, that I should be using the Time-Series format, and not the Table format. However, I have not been able to render any data points using the time-series feature, even by following the simplest of examples in your documentation. The best I can do is use the Table feature, and internally remove previous points from my database at every iteration (so that multiple points aren't rendered at the same time for each location). Here are two screenshots of when I'm able to render data on the geomap using the Table format, and then after switching to Time-Series format that the points are no longer there (note that I have the same problem with the Worldmap application as well).
I'm able to render data using the Table method:
...but not using time series:
Thanks for any help!
For rendering timeseries data on the geomap, you must convert your lat/long fields to a single geohash field. You'll have to do that prior to inserting the lat/longs into influxDB
See this answer
I have a list of hundreds of thousand of addresses with their Latitude/Longitude data.
In a second table, I have the Latitude/Longitude of hundreds of gas stations.
I need to derive a table with the lat/long of the house, the distance to THE CLOSEST gas station, and the name of the gas station.
I'm trying to create a stream for SPSS Modeler (I'm using version 18.2).
In excel was fairly simple (see example below). In sheet one are the houses with lat/long, in sheet two the gas stations data, in sheet three how I did it in excel for a limited number of points, and in sheet four the resulting table. Basically, in excel I took the lat/long of each house and calculated the distance to all the gas stations and kept the smallest one.
I'll appreciate any directions or ideas on how to generate an SPSS Modeler stream to do something similar.
You can download my excel sample here: https://github.com/schapsis/calculating-distance-question
Please see the solution posted at https://developer.ibm.com/answers/questions/512605/how-to-calculate-distance-between-many-geographic/
I'd like to visualize a number of points on a map. Unfortunately, there is no consistent address associated with each one. I've used Google Fusion tables to get a rough read on where the points are, and am relatively satisfied with the approximate locations of most points (sometimes Google figures out where they're located based on a landmark, sometimes based on an intersection provided, sometimes by street address, etc.).
My goal, then, is to create a choropleth map of a city (NYC, in this case), showing the number of points located in each neighbourhood. Is it possible to do this by somehow counting the number of points that fall within each neighbourhood?
I suspect that if fusion tables give me a passable visual, I may be able to use google's geocoding service in the same manner to figure out the number of points in each area, and use this to then build a choropleth (not a heat map — I'm after some level of interaction, like tooltips over each neighbourhood).
Is there any way to do this, or am I way, way off?
this a question from a very inexperienced user.
I have a table with electoral results, with this format:
I have merged this table with city shapes and can do a map visualization according to one of the columns.
My problem comes when I want to do filters and queries. I am quite puzzled.
I know how to activate and deactivate layers from an html document, calling (showing and hiding) different fusion tables.
What I want to try now is using a sole fusion table for different ways to show the data. I don't know if this is possible.
For example, possible queries to show on different maps called from a html page:
show only rows with type (column H) 'rural' (filter?)
fill polygons with colours according to the greater value among column B, D and F (if value for party1_2012 is > than party 2 2012 and > than party 3 2012, polygon colour is blue; if party 2 wins, fill is red...)
fill polygons with colours according to the difference between 2 columns (i.e. 2010 and 2012 results)
map combining option 1 (when showing only rural city), apply option 3 (show a colour according the difference between 2 columns)
Inspired by John Keefe's post Making AP Election Data Easy with Fusion Tables, tried to play with data, but no luck. I'm too inexperienced. Is it the way to go generate csv and call them from a webpage? Can I just generate the maps on Fusion Tables and obtain a url to call the queried mapfrom a webpage?
I appreciate suggestions or ways to go.
Thanks in anticipation!
Frans