Web-based Nanocube Viewer
We provide a basic web-interface for exploring a nanocube.
This web interface can be configured through a
For example, we configure the viewing parameters for the Chicago Crime data via
config_crime.json, the index.html file in the webserver reads the config from the
We provide the
ncwebviewer-config script for generating a basic configuration. Users may customize the configurations as needed. The configuration file is a json file with viewing parameters and styles for the charts and map.
title: sets the title of the page.
url: specifies the location of the nanocube server.
latlonbox: specifies the initial view.
tilesurl: specifies the url for map tiles by the leaflet conventions.
heatmapmaxlevel: specifies the max zoom level of the heatmap
Each of the map, the charts, or the info line is implemented as a
div in the webpage, the elements inside the
div attributes specifies the CSS styles and additional parameters for the
The div names should match the names of the variables in the nanocube, with the exception of the latitudes and longitudes, they are merged into
info element correspond to the time and count information on the top right hand corner. Users may modify the position, size, and fonts as if they are modifying the CSS of the
Here are some addition configurations:
- Spatial variables:
colormap: sets the heatmap colors.
- Categorial variables:
displaynumcat: sets how many values should the chart display.
true, the categorical values are sorted in alphabetical order, if
false, the values are sorted in descending order of count.
true, show log-scale axis.