1,192
questions
0
votes
0
answers
37
views
Powerbi Custom visual Filter Api - cross filtering
I am creating a custom visual where I need to know on which field I am getting filtered data.
for eg: let say I have my visual containing 3 fields now there is another slicer (powerbi slicer) visual ...
1
vote
0
answers
31
views
Cross filter through slicer
I want a slicer in my Power BI dashboard to filter a table visual. But this slicer is about a table ("StructuresInMarket") which is not in a direct "1 to many" relationship with ...
0
votes
0
answers
12
views
dc.js / crossfilter SeriesChart top 5 lines
Hello i have a question i have a SeriesChart, and it works fine, but i would like to limit the count of lines and sum the other into one line.
Like the pieChart or RowCharts
What is the best way for ...
0
votes
1
answer
52
views
Crossfilter for DC chart not working properly
I am new to DC chart. I am trying to show pie, bar and row chart of patients for specific regions using static array. I am using the example as showing here. The issue is when I select a single bar ...
2
votes
2
answers
77
views
How do you create a pie chart of subitems using a crossfiltered powered dc.js chart?
Suppose I have a list of customers with their orders:
const customers = [
{ id: 1, orders: [{ products: ["apple", "banana"] }, { products: ["apple"] }] },
{ id: 2, ...
0
votes
2
answers
44
views
Set axis domain dynamically based on minimum and maximum dataset value for a d3.js bubble chart
I am trying to assign a dynamic domain values for d3.js bubble chart. I am creating bubbles for total amount for an error per client. When I use a hardcoded range, I see the bubbles for each client. I ...
1
vote
0
answers
25
views
crossfilter.isElementFiltered for external datapoints
I need a convenient way to check if an arbitrary datapoint i.e. not part of the current crossfilter data would be filtered or not.
The only way I've found is to add the datapoint to the crossfilter, ...
0
votes
1
answer
35
views
uncaught TypeError: reduceInitial is not a function
I have an error that I cannot understand. It looks like I forgot to load a library but I've gone through all the available d3 libraries I can't see which library has reduceInitial as a function.
I use:...
1
vote
1
answer
42
views
Why every single dc.barChart example groups on dimension?
My mental image of crossfilter is that you
create your dimension over the variable you wish to study, and
create "bins" over that dimension, i.e. group().
I want to create a bar chart ...
1
vote
0
answers
15
views
Dc bar charts click function does not work on custom crossfilter dimensions
So, in my dataset I have one integer age variable. I am creating a custom crossfilter dimension and group of that variable as I need age ranges.
const ageRangeDim = ndx.dimension(function(d) {
...
0
votes
0
answers
32
views
Cross-filtering across different pages
I'm trying to cross-filter a Drop-down on Page 1 to a series of charts/tables on multiple pages. I can apply to Page 1 but not other pages. Is this possible?
I see the option to apply to charts/...
1
vote
0
answers
93
views
Dc.js with React: how to make a grouped bar chart?
Reference to this link https://jsfiddle.net/gordonwoodhull/tcraqj5e/6/
Can someone help me create a grouped bar chart using react-dc-js?
I was able to create a dimension and group like in this link, ...
1
vote
0
answers
35
views
Multiple Control Spans/ Ranges, one dimension in dc.js or crossfilter
I was wondering if it's possible to create multiple simultaneous control span filters in dc.js or crossfilter for a single dimension (e.g., something like the picture below).
I was hoping you could ...
1
vote
0
answers
63
views
DC.js pie chart of already summarized data
I have aggregate data like so:
Event Yellows Reds talls shorts
A. 1 3 5 0
B. 0 7 17 19
So each row contains a set of colours and a set of heights. ...
0
votes
0
answers
248
views
How to make a multiple line chart with series color determined by another property
I'm currently building a angular project where i need to draw a line chart with multiple datasets.
Angular 14
dc.js 4.2.7
Each line should represent a mac address and the line color should be ...
0
votes
2
answers
112
views
How can I align Chart title with the bar dynamically?
How can I align Chart title with the bar in highcharts?
The bar length may vary because of the data, so I want my title to end where the bar is ending.
I want to implement something like this:
2
votes
1
answer
527
views
Need clarification on SAlesforce Cross Filter logic
In Salesforce, What is the difference between the following two Cross Filters?
Accounts WITH Opportunities, Opportunity Type NOT EQUAL 'picklist item 2'
and
Accounts WITHOUT Opportunities, Opportunity ...
1
vote
0
answers
85
views
How can I solve the console error for dc.js OnClick functions?
I'm currently using d3.js version 7.4.4 and dc.js version 4.0.0.
Here's the code for making a bar chart and 2 pie charts using the same data:
dataCount = dc.dataCount('#data-count');
var CountryChart=...
0
votes
3
answers
253
views
Need to filter result set in DAX Power BI
I have following simple relationship:
I have created following visuals in Power BI:
I want to show Store Name, Orders (by Salesman selected in slicer) and Total Orders in that Store (ignoring ...
1
vote
0
answers
204
views
ReactJS dashboard using dc.JS and nivo charts
I was working on a reactJS dashboard PoC, with data filtering/slicing capability across charts.
Zeroed on dcjs and nivo charts for their capabilities.
I would like to understand whether nivo charts ...
1
vote
0
answers
59
views
crossfilter.js - count intervals contained within a range
My dataset consists of records with start and end timestamps.
The barchart's dimension is based of the end timestamp:
const dim = this.cf.dimension((item) => {
switch (this.config.xAxis) {
...
1
vote
0
answers
40
views
How to select begin and end dates independently with dc.js
Is it possible to filter a chart by selecting a specific begin date and then an end date without one interfering with the other?
For example I'm using a barChart and I have a range like range: [01/02/...
1
vote
0
answers
99
views
Crossfilter for downsampling data in dc.js plot
I'm trying to downsample an array that has ~10,000,000 points based on the current zoom state.
The downsampling mechanism is through downsample module, using LTTB function; below is a simple example ...
1
vote
1
answer
430
views
Is dc.js (used with crossfilter and d3.js) still a good option for Big data visualization on a browser page?
I'm try to build an online dashboard to visualize a large csv dataset and i want to be sure i'm following the right path.
Thank you everybody.
1
vote
0
answers
21
views
Count records excluding duplicates [duplicate]
I have an array like below, i want to count number of objects where v=="dynamictext" from the dimension without repeating value of key k.Please refer to the example below : e.g. lets say i ...
1
vote
0
answers
151
views
How to make a datatable with crossfilter2 from dimension with arrays?
I have data like this:
IDX
Name
1
Jack,Mike,Amy
2
Amy,Mike
3
Amy
4
Jack,Rachel
And with crossfilter2, I've been able to make a pie chart of each individual and the number of times they are ...
2
votes
1
answer
144
views
dc charts look different when building Angular App in production mode
I'm currently working on an application that is using d3, dc, and crossfilter to render some charts.
crossfilter2: v1.4.6
d3: v3.5.17
dc: v2.2.1
I was working on making the Y scale only showing ...
1
vote
1
answer
147
views
crossfilter2 dimension filter not working as expected
const crossfilter = require( 'crossfilter2');
const _ = require('lodash')
function randomGaussian() {
return (
Math.sqrt(-2 * Math.log(Math.random())) *
Math.cos(2 * Math.PI * Math.random())
...
2
votes
0
answers
73
views
Summing a multi-dimension crossfilter to reduce the number of dimensions
I'm working wtih @tillandsia on this problem and have made some strides thanks to @Gordon's advice. I've reshaped the data so there are Date, Hair Color, Age Group, and Value columns. E.g.
Date, Hair ...
1
vote
1
answer
232
views
Group by multiple dimensions recursively in dc.js?
dc.js has been great, and now I'm trying to understand how to use it for data with multiple dimensions.
I have time series data (csv), which contains the number of people that fit a certain attribute ...
2
votes
1
answer
70
views
plot individual aspects of a javascript crossfilter dimension (quantity vs time using d3 and crossfilter)
I am trying to plot a line graph of some quantity, in this case, "bananas", vs Time using D3 and crossfilter. The dimension aspect of the plot does not seem to reflect the dimension values ...
0
votes
1
answer
135
views
Histogram based on "reduceSummed" groups
I have CSV data with the following pattern:
Quarter,productCategory,unitsSold
2018-01-01,A,21766
2018-01-01,B,10076
2018-01-01,C,4060
2018-04-01,A,27014
2018-04-01,B,12219
2018-04-01,C,4740
2018-07-01,...
1
vote
1
answer
415
views
dc.js grouped bar chart
I need to do this grouped bar chart like this one but the .renderType() doesn`t work. Are there any solutions to do a chart like this? Thanks!
1
vote
0
answers
20
views
unique Count of values in dimension using crossfilter (dc.js) [duplicate]
I want to reduce the array below so that I can display it on NumberDisplay. Instead of displaying 2 its displaying 3 . its not ignoring the duplicates in its calculations
[{
"val": 28,
&...
2
votes
2
answers
566
views
How to add icons in dc.js piechart slices instead texts
I have been working with dc.js for a year now. Recently I have been tasked to implement a pie chart as below:
I want to replace the text labels in the pie chart slices with appropriate images.
I saw ...
1
vote
1
answer
175
views
Using the first row in bin (instead of average) to calculate percentage gain
In the dc.js Nasdaq example, percentageGain is calculated as:
(p.absGain / p.avgIndex) * 100
Here avgIndex is the average of all the day-averages.
I'm more familiar with the equation:
A. (Price - ...
1
vote
0
answers
112
views
How do I crossfilter 2 dc.js SeriesChart?
I'm new to creating visualizations with dc.js and I am looking to create 2 dc series chart where the second graph is filtered by clicking on the first graph. The second series graph (school graph) ...
1
vote
1
answer
37
views
Getting Top n Of Complex Reduce
I think I'm missing something obvious.
Using DC.JS's datatable implementation:
var salesExpenseByCompany = dc.dataTable("#salesExpenseByCompany");
var salesExpenseDim = facts.dimension(...
2
votes
0
answers
183
views
Plotly JS crossfilter on id with multiple graphs
I am trying to build a dashboard with multiple plotly graphs in Javascript. I would like to implement a crossfilter function within the charts where the selected data in a graph will be highlighted in ...
1
vote
1
answer
64
views
Crossfilter temporary groups efficiency
I'm integrating Crossfilter with Vue and wonder about efficiency.
Whenever the state of the UI updates, I'm doing calculations using code like this one, to get various metrics from the dataset:
const ...
1
vote
0
answers
12
views
dc.js table -- Select row(s), highlight onclick and apply filter for Crossfilter [duplicate]
Using this previous question as a starting point. Thanks to Gordon's solution, the selectable table is built and filters but I am interested in highlighting the row once clicked and allowing for ...
1
vote
1
answer
56
views
Basic dc.js dataTable shows wrong data
I have a basic dataTable in dc.js. I'm trying to get it to display a list of all the values in the data. But instead it shows a subset. Very simplified Fiddle here: https://jsfiddle.net/dhbrt0om/1/
...
3
votes
1
answer
1k
views
d3 break line graph if no data
I am using dc to create a line graph where capacity is on the y-axis and week is on the x-axis. For weeks, the range is 1-52, but there is no data from weeks 2-40. I only have data for week 1 and 41-...
1
vote
0
answers
31
views
Can not get dimensions and groups to work properly in DC JS
Ive been trying to get DC js and crossfilter to work with the following dataset, but I am not getting anywhere. Can someone please help me? The dataset looks like this :
Serie,Time,Country,Value
co2KT,...
1
vote
2
answers
144
views
Use DC.js Canvas Scatter Hover Information to Update Another Chart
I would like to hover over a DC.js canvas chart, and use the hovered point to apply changes to another chart (I.e. display the information about that point in another chart).
The complications:
It's ...
1
vote
1
answer
37
views
Conditional custom X Value dim name when no filters are applied to DC.js Chart
Had a follow-up question Original Question which was to group by both color and day, and then find the max day for each color. Gordon did a great job explaining how to keep a running sum for each ...
1
vote
1
answer
112
views
Original Data Display on chart after filtering (DC.js)
I'm trying to display original data on my DC.js chart (similar to this) once filtered by using a "fake group".
I followed the steps in this post, and haven't had luck. I'm wondering if it's ...
1
vote
1
answer
127
views
dc.js: show all domain x values in heatmap
Requirement
I'm trying to create a heatmap indicating the frequency of an event through the hours of the week. On the Y axis I have the days of the week and on the X axis I have the hours of the day. ...
1
vote
1
answer
129
views
Nested Grouping with Crossfilter?
New to cross filter and working on a project that needs to maintain summed totals and peak values of those summed totals over a date range.
Tried to utilize the complex reduction from the dc.js ...
1
vote
2
answers
94
views
crossfilter.js - exclude facts from group based on separate dimension
Presume I have the following crossfilter object (simplified) to be plotting in a dc.js scatterPlot
var ndx = crossfilter([
{time: 0.5, counts: 8, direction: 1},
{time: 0.8, counts: 0, direction: -...