Extension Vegaview


Extension Basics

Title
Vegaview
Name
ckanext-vegaview
Type
Public extension
Description
VegaJS' view extension for CKAN
CKAN versions
Download-Url (zip)
Last commit
11 years ago (2014-04-09 02:47:46)
Url to repo
Category
Visualization & Analytics


Background Infos

Description (long)
Show details

CKAN Vega Extension

This plugin allows you to use VegaJS, a visualization grammar, to create graphs for CKAN resources.

Requirements

  • DataPusher
  • Resource View Branch

Installing

Inside your pyenv, install using pip:

pip install -e git+git://github.com/okfn/ckanext-vegaview.git#egg=ckanext-vegaview

Then activate it by adding vegaview inside ckan.plugins in your .ini file.

Using

First of all, the resource you want to create a graph for needs to be in datapusher. Make sure it is, before proceeding.

To create a new view, you simply need to add Vega’s specification to the Specification field. The resource’s data is available in a data variable to be used in the specification. For example:

{
  ...
  "data": [
    {
      "name": "gold_prices",
      "values": data
    }
  ],
  ...
}

If needed, you can debug its format by inspecting the view page’s HTML.

Version
Version release date
(not set)
Contact name
(not set)
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints
Plugins to configure (ckan.ini)
vegaview
CKAN Settings (ckan.ini)
DB migration to be executed
(not set)
<< back to Extensions