Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Supporting selection with a dataviewmappings of type Table

Hello,

I have created a custom visual using a table dataviewmapping and am trying to enable highlight based filtering to other visuals.

All samples, and posts I find solve this using only categorical dataviewmappings.  How can I pull this off using tables?

When supportsHighlighting is true, my dataview starts to send all data even if another visual has selections applies, and the dataview appears to have no information included about what filter is applies for me to manually ignore the appropriate data.


Note I have seen a few examples that mention code like:

  const categories: DataViewCategoricalColumn =
                        options.dataViews[0].categorical.categories[0];
                    const target: IFilterColumnTarget = {
                        table: categories.source.queryName.substr(
                            0, categories.source.queryName.indexOf('.')),
                        column: categories.source.displayName
                    };

But options.dataViews[0].categorical is undefined in my case.

Thanks in advance!



No Replies