question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Data Package Data Views Specification (Visualizations)

See original GitHub issue

UPDATE August 2017

Draft spec at: http://specs.frictionlessdata.io/views/

UPDATE March 2017

v1.0 DRAFT SPEC AVAILABLE HERE: https://hackmd.io/s/SyTcmXPwl



OLD

What: a JSON spec for describing views of data like graphs, tables or maps. Probably focus this just on graphs to start with.

This spec is motivated by desire to include views support in to Data Packages. However, we aim to make this generic and reusable outside of Data Packages and we will avoid or flag anything Data Package specific.

This was motivated by experience with ReclineJS where we needed to serialize “view” configurations (e.g. graphs and maps) into JSON. I have been using this informally in data packages for a while - see e.g. https://github.com/datasets/house-prices-us/blob/master/datapackage.json#L157

Proposal

The datapackage.json MAY contain an attribute named views. The value of views MUST be an array where each entry is a data “view” descriptor. Each data view descriptor MUST be a JSON object and MUST have a type key which uniquely defines the type of view (and what other attributes should be present).

Here’s an example:

{
    "id": "...",
    "title": "...",
    "type": "Graph",
    # this is specific to Data Package
    # optional - resource id or name to pull data from. defaults to first resource if not specified
    "resource": 1,
    "state": {
      # this will be specific to each type of graph
      graph-state ...
    }
  }

Planned

Whilst new tools can specify their own “view” information we provide define 2 specific types:

  • type: graph
  • type: map
  • type: vega - follow the vega spec
    • important question

type: graph

Propose: we use Flot or Vega spec - http://trifacta.github.io/vega/

type: map

Propose: we run this off leaflet (??)

Research

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:34 (33 by maintainers)

github_iconTop GitHub Comments

2reactions
domoritzcommented, Feb 26, 2018

I think you guys will like https://github.com/vega/vega-lite/pull/3417. It makes injecting data into a Vega-Lite spec quite easy.

2reactions
rufuspollockcommented, Aug 18, 2017

First draft of a views spec is out:

http://specs.frictionlessdata.io/views/

Especially recommend reading: http://specs.frictionlessdata.io/views/#concepts-and-background

Current text is unpolished but underlying model is quite robust and has been actively used and tested for the last 9-12m and is in active use in production in https://datahub.io/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Package Views - Frictionless Standards
A simple format for describing a views on data that leverages existing specifications like Vega and connects them with data provided in data ......
Read more >
Data Packages Views - Graphs, Maps, Tables etc
A way to describe the view in JSON in our Data Package; Code that takes (JSON view + Data) → visualization or table...
Read more >
Visualizations | Visualize and present data - Mode Support
Visualize your data to gain insight. ... Mode offers a number of options for building visualizations, including the ability to take your analysis...
Read more >
Data views - OSIsoft Documentation
Data views allow you to access subsets of data items from OSIsoft Cloud Services (OCS) in data-driven applications, where the items can be...
Read more >
Data Views - Datopian Tech
A descriptive language: for specifying views such as tables, graphs and maps (and their source data). Rendering tools: take those specifications ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found