Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
gabrieloliveira
New Member

Click and drag data selection

 

I'm building a new visual using typescript.

And I need to use click and drag data selection that exists on the Windows desktop for example.

 

 

example.png

 

The visual I'm building is a matrix , and I need this click and drag function to select the data that will be highlighted.

 

Any idea how to implement this in the visual I'm building?

 

 

 

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee

@gabrieloliveira

I guess it is possible as in Javascript but would be quite a challenge. What is the purpose in your case? By the way, you could do multiple selection by pressing "Ctrl" button.

View solution in original post

2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee

@gabrieloliveira

I guess it is possible as in Javascript but would be quite a challenge. What is the purpose in your case? By the way, you could do multiple selection by pressing "Ctrl" button.

The idea would be to make a selection of many data from the matrix in the matrix would not appear the data but colored boxes representing, and would need to select dozens of them in a single selection, where the ctrl key would become a tiresome selection, I was able to build the solution in Javascript.
Thank you very much

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors