I need to draw line x=y on the chart below.
Can you help me please?
It must work even if for example max(x) = 100 and max(y) = 10.
We have to take the max value of x and y and draw a line from (0,0) to (max,max)
The code below takes values and sort x and y ascending and draw a chart.
Please have a look here
I know a bit of Vega Lite, however Vega is a different level 😉