{ "title": "Films", "collectionName": "films", "description": "Several films to demontrate the usage of VISIR", "documentFields": { "$title": { "visible": true, "label": "Title", "path": "content.json.title" }, "$year": { "visible": true, "label": "Year", "path": "content.json.year" }, "$director": { "visible": true, "label": "Director", "path": "content.json.director" }, "$actors": { "label": "Actors", "path": "content.json.actors", "parseCSV" : "/", "foreach": { "trim": true } }, "$vactors": { "label": "Actors", "path": "actors", "join": ", " }, "$text": { "get" : ["title", "year", "director", "actors"], "join": "|" } }, "display": { "fields": { "title": "Title", "year": "Year", "director": "Director", "vactors": "Actors" } }, "corpusFields": { "$filmsNb": { "visible": true, "label": "films", "icon": "hand-o-right", "$?": "local:///compute.json?operator=count&field=wid", "parseJSON": true, "get": "data.0.value", "cast": "number" }, "$years": { "default": 0, "$?": "local:///compute.json?operator=distinct&field=year", "parseJSON": true, "select": ".data ._id", "foreach": { "cast": "number" } }, "$beginYear": { "get": "years", "min": true }, "$endYear": { "get": "years", "max": true }, "$period": { "visible": true, "template": "{{beginYear}}-{{endYear}}", "icon": "calendar" }, "$actorsNb": { "visible": true, "label" : "actors", "icon" : "star", "$?": "local:///compute.json?operator=distinct&field=actors", "parseJSON": true, "length": "true", "cast" : "number" }, "$actorsPerFilm": { "visible": true, "default": 0, "label" : "actors/film", "icon" : "star-half-o", "compute": "actorsNb / filmsNb", "cast" : "number" } }, "pages" : { "index" : { "title" : "Dashboard", "description" : "Dashboard of the films", "help" : "The settings for this dashboard are described in [repository.json](https://github.com/madec-project/showcase/blob/master/demo_films/repository.json)." }, "chart" : { "title" : "Chart", "description" : "Chart on films" }, "documents" : { "title" : "List", "description" : "List of films", "help" : "Some films, with all fields of the CSV file. You can sort by one column (ex: Year), using the arrows." }, "fields" : { "title" : "Fields", "description" : "Fields of the films records", "help" : "Actors field was split from original file. Each actor was separated one from another using a `/`." }, "display" : { "title" : "Record", "description" : "Film record" } }, "dashboard": { "charts": [ { "field": "content.json.year", "type": "histogram", "title": "Per year", "color": "#bdd7e7", "size": { "height": 200 }, "facets": [ { "path": "actors", "label": "Actors" }, { "path": "content.json.director", "label": "Director" } ] }, { "field": "content.json.director", "type": "horizontalbars", "title": "Per director", "color": "#6baed6", "size": { "height": 450, "columns": 6 }, "facets": [ { "path": "content.json.year", "label": "Year" }, { "path": "actors", "label": "Actors" } ] }, { "field": "actors", "type": "horizontalbars", "title": "Per actor", "color": "#2171b5", "maxItems": 12, "size": { "height": 450, "columns": 6 }, "facets": [ { "path": "content.json.year", "label": "Year" }, { "path": "content.json.director", "label": "Directors" } ] }, { "field": "content.json.year", "type": "pie", "title": "Years pie", "legend": { "position": "right", "show": false }, "facets": [ { "path": "actors", "label": "Actors" }, { "path": "content.json.director", "label": "Director" } ] }, { "type": "network", "fields": [ "actors" ], "maxItems": 100000, "title": "Actors net", "help": "Links between actors." } ] } }