Developing a graph out of raw data

Tjeu

New Member
Joined
Sep 13, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hey guys,

I am a sports coach and I want to have a graph of the xG (Expected Goals) in a game over time. The graph would consist of 4 lines (1 with my teams expected goals, and 1 with my teams actual goals, and the same for the opponent).

I have an application that exports a raw data file in excel and I want to let excel automaticaly form the graph. The image that I will add to this message is the raw data file that I will get after every game. You can tell the time, goals, shots and everything. Every type of shot is a different value for xG. For example, a long distance shot is 0.14 and a penalty is 0.84. I think I can use a stacked line chart for this issue, but I don't know how I can code this.

Can someone help me develop some sort of code for this?

It will need to look a little bit like the other image I will add to this message. But then, I want to add 2 lines (1 for each team's actually scored goals).

Kind regards,
Tjeu
 

Attachments

  • Schermafbeelding 2022-11-09 163002.png
    Schermafbeelding 2022-11-09 163002.png
    135.7 KB · Views: 25
  • Schermafbeelding 2022-11-09 163549.png
    Schermafbeelding 2022-11-09 163549.png
    62.9 KB · Views: 18

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,224,817
Messages
6,181,148
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top