John Meyers 2 Posted January 13, 2020 Share Posted January 13, 2020 Hello. Let's say I have a dataset with different teamsby row and the annual wins by each of those teams in year-by-year columns... how do I plot this as a line chart with "year" on the x-axis, "annual wins" on the y-axis and three different lines (one for each team) The issue I'm running into is creating the individual"year" columns into one continuous time series. Team 2001 2002 2003 2004 2005 A 5 6 1 3 4 B 1 4 6 1 3 C 5 2 1 2 4 Thanks for your help! Link to comment Share on other sites More sharing options...
Kirsten Smith (she/her) Posted January 15, 2020 Share Posted January 15, 2020 You'll need to unpivot your data, so that you have a column with dates, a column for teams, and a column for wins. Then you can create your line chart using the team column for "Line By". Link to comment Share on other sites More sharing options...
John Meyers 2 Posted January 16, 2020 Author Share Posted January 16, 2020 Hmm ... thanks for the response but I highly simplified the description of my dataset and it is just not possible to transpose my actual data. Is there no other way to plot the (overly simplistic) dataset above as a line chart versus year without first modifying it Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now