WIP
Current prototype: MKIV.
Check out the Notebook.
Here's a quick peek.
-
Clone the
multi-vis
branch ofdraco
, found here. And follow the installation instructions. -
Install dependencies:
pip install -r requirements.txt
. -
Install Dziban:
pip install -e .
. -
Start up a notebook:
jupyter notebook
. -
Import Dziban and perhaps a dataset from
vega_datasets
.
from dziban.mkiv import Chart
from vega_datasets import data
Follow the demo for usage examples.
base.py
<>
base definition for a chart, including initialization
chart.py
<>
programming layer, exposed to user
encoding.py
<>
AST node for encoding objects
field.py
<>
field methods for a chart, exposed to user
graphscape2asp.js
<>
script for translating Graphscape definitions and weights into ASP (to be placed into Draco). See below.
In addition, Dziban uses a modified version of Draco, which supports multi-view and Graphscape's transition reasoning. This can be found on this branch. There are changes to the original Draco scattered about. Noteably:
compare.lp
<>
transition definitions for Graphscape
compare_weights.lp
<>
weights for these transitions
The whole system
has been modified to allow for multiview reasoning (many other files, e.g.
define.lp
,soft.lp
,optimize.lp
,run.py
,asp2vl
,optimize_draco.lp
,optimize_graphscape.lp
, and more and more).