simwrapper / simwrapper

Source code for SimWrapper
GNU General Public License v3.0
27 stars 13 forks source link

Map Plot: Show merged attribute on hover #276

Open frievoe97 opened 1 year ago

frievoe97 commented 1 year ago

It would be quite useful if not only attributes from the geojson are shown, but also attributes from the CSV.

frievoe97 commented 11 months ago

attribute window should stay visible after click on link.

frievoe97 commented 11 months ago

Maybe: Add checkboxes for each attribute in the settings menu to enable/disable them.

rakow commented 3 months ago

Push, this is quite important actually, especially for the counts plot.

billyc commented 3 months ago

The UI for specifying the tooltip is not present, but the YAML functionality is already there! You can add a tooltip: section, which is an array of - dataset:column elements. This replaces the default tooltip which shows all columns in the network.

This is documented on the shapefile page here: https://simwrapper.github.io/docs/shapefiles

And an example below, based on the counts dashboard from Berlin:

  shapes:
    file: analysis/network/network.avro
    join: id
  datasets:
    counts: analysis/traffic-car/count_comparison_daily.csv
  tooltip:
    - shapes:capacity
    - counts:quality