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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mkins
Helper I
Helper I

Connect 2 related markers on scatter plot

Hello,

 

I am analysising a football/ soccer game where I record where the ball is kicked from and where it is kicked to. As a result I record 2 x XY cooardinates, for each event (kick of the ball). These are then displayed in a scatter plot with a football pitch image set as the background.

 

Is it possible to have these 2 XY coordinates connected to eachother with a line? This would allow me to see the trajectory of the ball.

 

Please see below for a sample of my data:

 

EventField PositionStart XYEnd XYStart XStart YEnd X End Y
Pass16;20;37;3816;2037;3816203738

Pass

20;24;27;4920;2427;4920242749
Pass14;84;55;8314;8455;8314845583
Pass62;28;31;8262;2831;8262283182

 

 

An example output of a single pass would look like:

mkins_0-1711622189424.png

 

TIA

 

1 REPLY 1
v-binbinyu-msft
Community Support
Community Support

Hi @mkins ,

Please refer below document, it provides a way to achieve your demand:

2022 Week 31 | Power BI: Connected Scatter with PlotlyJS – Workout Wednesday (workout-wednesday.com)

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.