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

d3-style syntax #36

Open
deanmalmgren opened this issue Jul 2, 2015 · 0 comments
Open

d3-style syntax #36

deanmalmgren opened this issue Jul 2, 2015 · 0 comments

Comments

@deanmalmgren
Copy link
Contributor

This came up previously and will make more sense to do when we split catcorr across multiple files. It would be nice to have more modular functionality to make it easy to split out different functional units, particularly for testing purposes.

var cc = catcorr.data(data)
    .options(options)
    .render(selector, options)

var choices = cc.questions[0].choices()

// get the histograms when something is selected
var histograms = cc.questions[0].select(choices[0]).histograms();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant