I want to create a line charts for the folowing df:
Scope Bradley Beal Steven Adams
0 120 Days 2229.6 949.9
1 60 Days 2229.6 949.9
2 30 Days 2445.6 897.5
3 14 Days 2087.0 700.3
4 7 Days 2075.0 642.5
X axis will have Scope sorted acording days and Y will have 2 lines of the values accordingly.
the hard part is the long vs wide format. You’ll need a column where you put the name of the runner so you can use that as input for color for each row. There are tips to transform your dataframe for long format here.
then you can configure your X/Y/color axis inside the alt.X and alt.Y part for legend, sorting your X axis and scale limits, and title inside the .properties part. Duration:N is a shortcode for use Duration column as a nominal/categorical column (help here).