Comments (7)
If you are binding them to the same dimension then the filtering will not affect other bubble chart, however if you create different dimension instances even though they might generated using the same logic, the filtering will treat them as separate dimensions. Let me know if that is not the case.
from dc.js.
That's correct, and I suppose the current behavior is to be expected.
Is there an approach I might use to optionally fade the other charts utilizing the same dimension?
from dc.js.
Yes, this is the expected behaviour from crossfilter group function. What
do you mean by fade, can you explain what you trying to do a bit?
Nick
On Thu, Aug 9, 2012 at 2:50 PM, samsmits [email protected] wrote:
That's correct, and I suppose the current behavior is to be expected.
Is there an approach I might use to optionally fade the other charts
utilizing the same dimension?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-7623241.
from dc.js.
I was thinking along the lines of what the fadeDeselectedArea method accomplishes for the bubble charts.
I am reusing (minimizing overhead) a dimension in multiple charts yet render them using different parameters (they have different coordinates, parameters,etc). Selecting a node in one chart should indicate which node that is in a sibling chart.
Is there a call to the other graphs that I can tap into?
from dc.js.
Interesting idea. I think you can accomplish this by using a custom renderlet. Renderlet can be added to each of your bubble chart since every bubble selection triggers the redraw event thus calling your renderlet. I guess in the renderlet you can over write the default onclick handler on the bubbles to filter simultaneously on all three charts:
bubbleChart1.renderlet(function(chart){
chart.selectAll("g.node circle").on("click" function(){
bubbleChart1.filter(d.key);
bubbleChart2.filter(d.key);
bubbleChart3.filter(d.key);
dc.redrawAll(chart.chartGroup());
}) ;
});
// repeat this with other charts
I haven't tried this myself though :) Let me know if it works for your use case.
from dc.js.
That works perfectly, thanks!
Does renderlet override the default (eg. 'click' in this example) behavior?
from dc.js.
Yes, it does.
from dc.js.
Related Issues (20)
- DataCount issues improper warning HOT 3
- Stacked bar chart legend label alignment is off in Chrome HOT 3
- Bar charts with rangeChart breaks mouse zoom on second render call. HOT 1
- "brushing on ordinal bar chart" example row chart animation is very slow HOT 4
- Line chart can't renderData point and Brush at same time HOT 3
- 2.x support - crossfilter.quicksort removed in [email protected]
- dc sunburst chart -- color of legend and the chart does NOT match HOT 6
- dc built in wordcloud for dc v4 possible?
- array filter feature in dc.js, how to handle when the .dimensions function takes multiple dimensions? HOT 3
- dc sunburst chart - externalLabels not working
- Seeking new maintainers HOT 5
- vulnerability: d3-color:2.0.0: 1084597(10.0)
- High vulnerability found in d3-color
- Line chart- multiple lines with multiple datasets HOT 2
- Error: No d3.js compatbility nester registered, load v5 or v6 compability layer. HOT 3
- Does it support faceted graphics? HOT 1
- Tip: make dataTable.columns accept object path
- Brushing/filtering issue since 4.1.0 - Broken example HOT 6
- Is DC v4 compatible with D3 v7? HOT 4
- I have set the users group to read only
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dc.js.