The current app at root of repo is for single frictionless dataset. Should be in its own example so we have space going forward for multiple example and for root to have core portal.js code. * Also refactor its README (moved from root) to reflect it is just an example * Move design content from the root README.md into DESIGN.md * Stub a new root README.md based largely on examples/catalog/README.md
131 lines
2.7 KiB
JSON
131 lines
2.7 KiB
JSON
{
|
|
"name": "finance-vix",
|
|
"title": "VIX - CBOE Volatility Index",
|
|
"homepage": "http://www.cboe.com/micro/VIX/",
|
|
"version": "0.1.0",
|
|
"license": "PDDL-1.0",
|
|
"sources": [
|
|
{
|
|
"title": "CBOE VIX Page",
|
|
"name": "CBOE VIX Page",
|
|
"web": "http://www.cboe.com/micro/vix/historical.aspx"
|
|
}
|
|
],
|
|
"resources": [
|
|
{
|
|
"name": "vix-daily",
|
|
"path": "vix-daily.csv",
|
|
"format": "csv",
|
|
"mediatype": "text/csv",
|
|
"schema": {
|
|
"fields": [
|
|
{
|
|
"name": "Date",
|
|
"type": "date",
|
|
"description": ""
|
|
},
|
|
{
|
|
"name": "VIXOpen",
|
|
"type": "number",
|
|
"description": ""
|
|
},
|
|
{
|
|
"name": "VIXHigh",
|
|
"type": "number",
|
|
"description": ""
|
|
},
|
|
{
|
|
"name": "VIXLow",
|
|
"type": "number",
|
|
"description": ""
|
|
},
|
|
{
|
|
"name": "VIXClose",
|
|
"type": "number",
|
|
"description": ""
|
|
}
|
|
],
|
|
"primaryKey": "Date"
|
|
}
|
|
}
|
|
],
|
|
"views": [
|
|
{
|
|
"name": "vega4",
|
|
"resources": [
|
|
0
|
|
],
|
|
"specType": "vega",
|
|
"spec": {
|
|
"width": 600,
|
|
"height": 300,
|
|
"data": [
|
|
{
|
|
"name": "vix-daily"
|
|
}
|
|
],
|
|
"scales": [
|
|
{
|
|
"name": "VIXOpen",
|
|
"type": "point",
|
|
"range": "width",
|
|
"domain": {
|
|
"data": "vix-daily",
|
|
"field": "VIXOpen"
|
|
}
|
|
},
|
|
{
|
|
"name": "VIXHigh",
|
|
"type": "linear",
|
|
"range": "height",
|
|
"domain": {
|
|
"data": "vix-daily",
|
|
"field": "VIXHigh"
|
|
}
|
|
}
|
|
],
|
|
"axes": [
|
|
{
|
|
"orient": "bottom",
|
|
"scale": "VIXOpen"
|
|
},
|
|
{
|
|
"orient": "left",
|
|
"scale": "VIXHigh"
|
|
}
|
|
],
|
|
"marks": [
|
|
{
|
|
"type": "line",
|
|
"from": {
|
|
"data": "vix-daily"
|
|
},
|
|
"encode": {
|
|
"enter": {
|
|
"x": {
|
|
"scale": "VIXOpen",
|
|
"field": "VIXOpen"
|
|
},
|
|
"y": {
|
|
"scale": "VIXHigh",
|
|
"field": "VIXHigh"
|
|
},
|
|
"strokeWidth": {
|
|
"value": 2
|
|
}
|
|
},
|
|
"strokeOpacity": {
|
|
"value": 1
|
|
}
|
|
},
|
|
"hover": {
|
|
"strokeOpacity": {
|
|
"value": 0.5
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |