Coder Social home page Coder Social logo

Comments (8)

GJ2511 avatar GJ2511 commented on June 20, 2024

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

from dimple.

norecces avatar norecces commented on June 20, 2024

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.

from dimple.

frenchbread avatar frenchbread commented on June 20, 2024

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

from dimple.

norecces avatar norecces commented on June 20, 2024

Hi @frenchbread

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

from dimple.

frenchbread avatar frenchbread commented on June 20, 2024

@norecces Looks much simpler than I thought :)

Thanks!

from dimple.

norecces avatar norecces commented on June 20, 2024

@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.

from dimple.

frenchbread avatar frenchbread commented on June 20, 2024

@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?

from dimple.

GJ2511 avatar GJ2511 commented on June 20, 2024

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)

from dimple.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.