Skip to content

Commit 3572c00

Browse files
author
Billy Charlton
committed
udpated tooltips for shapefiles
1 parent 95ad045 commit 3572c00

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

docs/ref-shapefiles.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,19 +155,19 @@ _More filter examples needed!_
155155

156156
```yaml
157157
tooltip:
158-
- AM:TOT_VOL
159-
- AM:TNC
160-
- freeflow.shp:FACILITY_TYPE
161-
- freeflow.shp:SPEED
158+
- shapes.FACILITY_TYPE # "shapes" always refers to the shapefile/network/features
159+
- shapes.SPEED
160+
- am_assign.TOT_VOL
161+
- am_assign:BIKE
162162
```
163163

164-
By default, the tooltip shows all columns in the shapefile, as well as any columns that are actively being displayed as either a color or a width.
164+
By default, the tooltip shows all columns in the featureset/shapefile, as well as any columns that are actively being displayed as either a color or a width.
165165

166166
You can customize the tooltip to just show what you are interested as follows:
167167

168-
- Add a `tooltip:` section to the properties, which will be an array of tooltip entries
169-
- Each entry is of format `datasetname:columnname`, so for example `AM_FLOWS:VEHICLE_VOL` will display the AM_FLOWS dataset and VEHICLE_VOL column.
170-
- Use the shapefile/network filename for its columnar data, or the dataset "key" for joined datasets.
168+
- Add a `tooltip:` section to the properties, which will be an *array of tooltip entries*
169+
- Each entry is of format `dataset.columnname`, so for example `AM_FLOWS.VEHICLE_VOL` will display the AM_FLOWS dataset and VEHICLE_VOL column.
170+
- Use `shapes:...` for the shapefile/network data, or the dataset "key" for joined datasets.
171171

172172
## Difference plots
173173

@@ -256,6 +256,10 @@ display:
256256
colorRamp:
257257
ramp: Plasma
258258
steps: 7
259+
tooltip:
260+
- shapes.FACILITY_TYPE # "shapes" always refers to the shapefile/network/features
261+
- shapes.SPEED
262+
- transit-trips.passengers
259263
```
260264

261265
### Sample dashboard-1.yaml dashboard with an area map
@@ -289,4 +293,8 @@ layout:
289293
colorRamp:
290294
ramp: Plasma
291295
steps: 7
296+
tooltip:
297+
- shapes.FACILITY_TYPE
298+
- shapes.DISTRICT
299+
- transit-trips.passengers
292300
```

0 commit comments

Comments
 (0)