Skip to content

Commit

Permalink
fix(vega): Add version key to Vega MIMETYPE
Browse files Browse the repository at this point in the history
As used by altair:  vega/altair#216
  • Loading branch information
lgeiger committed Jul 5, 2017
1 parent ace6f3e commit 920c1d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example-notebooks/altair.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"import IPython.display\n",
"def vegify(spec):\n",
" IPython.display.display({\n",
" 'application/vnd.vegalite+json': spec.to_dict()\n",
" 'application/vnd.vegalite.v1+json': spec.to_dict()\n",
" }, raw=True)"
]
},
Expand Down
4 changes: 2 additions & 2 deletions packages/transform-vega/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import React from "react";
const merge = require("lodash").merge;
const vegaEmbed = require("vega-embed");

const MIMETYPE_VEGA = "application/vnd.vega+json";
const MIMETYPE_VEGALITE = "application/vnd.vegalite+json";
const MIMETYPE_VEGA = "application/vnd.vega.v2+json";
const MIMETYPE_VEGALITE = "application/vnd.vegalite.v1+json";

const DEFAULT_WIDTH = 500;
const DEFAULT_HEIGHT = DEFAULT_WIDTH / 1.5;
Expand Down

0 comments on commit 920c1d2

Please sign in to comment.