On Aug 11, 2021, at 4:54 AM, sevil yılmaz <programc....@gmail.com> wrote:
Hi Gordon,I need to use more than one chart group.Thank you so much for your help.vendedorTable.filter(null);marketDim3.filter(null);When I remove these lines, I can filter on the table click in more than one chart group.I have one more problem, when I give size to the table, it doesn't sort correctly..sortBy(function(d) {return d.value.TotalCost}).order(d3.descending).size(Infinity)When I use these lines, the first 5 data is correct as in the screenshot.
<table1.png>but when I give size(5) to the table, the correct data is not coming. How can i solve this?
<table2.png>Cheers,Sevil
Hi Sevil,There are a couple of reasons for this:1. In this example, you are using two chart groups, but you only have one crossfilter instance. Usually there will be one chart group per crossfilter instance, because the chart group defines which charts will interact with each other, and when you set a filter on one of the dimensions of a crossfilter instance, that affects all the other dimensions & groups of that crossfilter instance.2. After setting the filters for the table and the table's dimension, you immediately reset the filters to null:vendedorTable.filter(null);
marketDim3.filter(null);
I tried using only one chart group and commenting out these resets, and it appears to work:But perhaps this misses the intent of your example?Cheers,GordonHello,When I add a filter group to the charts, they filter within themselves, but I can not click on the row in the table and filter in the related group.For example, I have a group called group1 and group 2, when I choose from the select menu, the relevant pie chart is filtered.When I click on the first pie chart, the table is filtered, but when I click on a row from the table, the pie chart is not filtered.I hope I was able to explain. I made a example.Thank you very much in advance for your help.Sevil,
--
You received this message because you are subscribed to the Google Groups "dc-js user group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dc-js-user-gro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/7f765403-c78f-47d7-8041-4e03273d2f7cn%40googlegroups.com.
<table2.png><table1.png>
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/6840cfff-4f11-443a-92fa-38e479b49c27n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/769C08D1-5F19-4CF5-9533-F5C56C0D8259%40woodhull.com.