Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Recline with Vega views #16

Open
6 tasks
rufuspollock opened this issue May 12, 2016 · 6 comments
Open
6 tasks

Replace Recline with Vega views #16

rufuspollock opened this issue May 12, 2016 · 6 comments

Comments

@rufuspollock
Copy link
Collaborator

rufuspollock commented May 12, 2016

Recline spec to Vega

      "id": "Graph",
      "type": "Graph",
      "state": {
        "graphType": "lines",
        "group": "Date",
        "series": [ "VIXClose" ]
      }

=> Vega(-lite)

      "id": "Graph",
      "type": "vega-lite",
      "spec": {
         // appropriate vega spec here ... e.g. for example above a line graph ...
      }
@rufuspollock rufuspollock changed the title Replace Recline with new Vega view stuff Replace Recline with Vega views May 12, 2016
@zelima
Copy link

zelima commented May 20, 2016

@rgrp Could you point where and/or how recline spec is generated? If we construct relevant spec for Vega, Replacing recline bootup with simple code could help (with first glance).

vg.parse.spec(vegaSpec, function(error, chart) {
    var vis = chart({
      el:"#vis"
    });
    vis.update();
  });

@rufuspollock
Copy link
Collaborator Author

@zelima the recline spec comes from the datapackage.json - right?

@zelima
Copy link

zelima commented Jul 4, 2016

@rgrp I have a little progress with changing recline graphs with vega-lite graphs. As an example it looks like this:
vega-lite3
vega-lite2
vega-lite1

@zelima
Copy link

zelima commented Jul 4, 2016

@rgrp Also I had to first roll back this commit 9d74771 to switch back to old view of website, since the new version was redirecting me to the actual website http://frictionlessdata.io

@zelima
Copy link

zelima commented Jul 5, 2016

@rgrp I've pushed changes on my repo zelima@d7a67e4 Please review it.

@zelima
Copy link

zelima commented Jul 5, 2016

@rgrp I've made new changes to code. For now it stitches between vegalite and recline(both graph and grid) views with help of simple html button and jquery toogle() method. As I found just the simplest, but maybe not even good approach to do this please review commit zelima@73da331 and leave your thoughts or remarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants