This article describes how to associate data to a Datazen map diagram. We map the data in the database to the map.
First, look at the data that is bound by the default map chart. The following is the system comes with the United States map data, there are two main columns, one column as a place name, one column as the measurement data. The map maps the metric data to the map chart.
This means that you can map data to a map as long as you have these two columns, as long as you make sure that the column names are mapped together with the columns in the map data.
Next we will create a new data query in the database and map the results to the map.
Open SQL Server, because there is no ready-made similar data at hand, so with simple SQL statements to generate some data. The actual project can generate the corresponding data query according to its own data situation.
Generates a data view based on the SQL statement. For information on how to configure data sources and Data views, refer to here:
Http://www.cnblogs.com/aspnetx/p/4558592.html
Preview the Data View.
Go to Datazen Publisher, create a new dashboard, drag a map control, go to Data View and click Add Data.
Specify the newly added data type and select Datazen Server.
Select a data source connection.
Then select the Data view you just created.
Back in the chart Data view, you can see the data table you just imported. Select the newly imported data in the keys.
Confirm that both the map name and the measure column are selected.
Preview the map and you'll see that the data generated in SQL Server is mapped to the map.
The effect in your phone.
Support Datazen Map Chart creation is complete, this article we chose from SQL Server data, Datazen map chart is very convenient to use, the own map data can also meet most of our reporting requirements, followed by how to create a chart based on custom map data.
Datazen Map Chart Custom data