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

Using dimple with crossfilter any examples #24

Open
farrukhsubhani opened this issue Nov 7, 2013 · 8 comments
Open

Using dimple with crossfilter any examples #24

farrukhsubhani opened this issue Nov 7, 2013 · 8 comments

Comments

@farrukhsubhani
Copy link

Is it possible to use dimple with crossfilter like dc.js to draw for example bar chart http://dimplejs.org/examples_viewer.html?id=bars_vertical and still allow filter. Is there any plan for such a thing in future.

@GJ2511
Copy link

GJ2511 commented Dec 18, 2013

yes you can

  1. define dimesions in crossfilter
  2. make appropiate groups on dimensions.
  3. by using groups make data in same structure as the chart needs it.
  4. then give this data to chart while drawing

@norecces
Copy link

In addition to what @GJ2511 recommended constructed data at point 3 should be not linked with crossfilter object since dimple.js makes data manipulation inside. After you catch crossfilter event you should draw your chart with new constructed data.

@frenchbread
Copy link

Could you please provide any super simple example that uses dimple & crossfilter?
@norecces @GJ2511

@norecces
Copy link

Hi @frenchbread

Look at the dummiest example ever
https://jsfiddle.net/norecces/6mjp764q/

@frenchbread
Copy link

@norecces Looks much simpler than I thought :)

Thanks!

@norecces
Copy link

@frenchbread I think the most common way to use crossfilter is to create multiple charts on the same page, which represent different dimensions of the same data. Next step is to handling selection of datum on one chart and perform updates on the other charts (filter dimensions). But when the initial data is large and there are a lot of dimensions - keep in mind that user experience will suffer from lags.

@frenchbread
Copy link

@norecces When using original D3.js with lots of dimensions, everything processed quite smoothly. (Depends on amount of data of course)

My initial question was actually about if it possible to make same "range" selections on a line chart for example like in D3.js. In D3.js it is done behind the scenes, so no need to set it up manually.

Wondering if it is possible to use same approach in dimplejs?

@GJ2511
Copy link

GJ2511 commented Feb 18, 2016

You have to either update or re-render you chart accordingly. Crossfilter just allows you to play with data client side only (i.e, apply filters)

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

5 participants