Skip to content

Commit 7af71bc

Browse files
add Perspective Datagrid view config to USA airports CSV table config example (#90)
1 parent b24601c commit 7af71bc

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

data/usa-airports.csv.table.json

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,46 @@
6666
{
6767
"field": "longitude",
6868
"title": "longitude",
69-
"width": 201,
69+
"width": 377,
7070
"minWidth": 40,
7171
"resizable": true,
7272
"sorter": "number",
7373
"headerSort": true
7474
}
75-
]
75+
],
76+
"views": {
77+
"Datagrid": {
78+
"plugin": "Datagrid",
79+
"plugin_config": {
80+
"latitude": {
81+
"fixed": 6
82+
},
83+
"longitude": {
84+
"fixed": 6
85+
}
86+
},
87+
"settings": true,
88+
"row_pivots": [],
89+
"column_pivots": [],
90+
"columns": [
91+
"iata",
92+
"name",
93+
"city",
94+
"state",
95+
"country",
96+
"latitude",
97+
"longitude"
98+
],
99+
"filter": [],
100+
"sort": [
101+
[
102+
"city",
103+
"asc"
104+
]
105+
],
106+
"expressions": [],
107+
"aggregates": {}
108+
}
109+
},
110+
"view": "Datagrid"
76111
}

0 commit comments

Comments
 (0)