This function creates a scatter graph with a line between two connecting points overlaid onto an image using cartesian variables including custom colours, line sizes, and legend. It is a very visually effective way to present your cartesian 'from and to' data on a map such as passes or shots. Similar to the scatter plot, it is best to use the same image you use in your Angles markup. A legend or key is added by default but just set this to 'false' if it is not needed.
IMPORTANT NOTE - you will want to use cartesian_line_extract variable function to provide the 'var_array' data to this content function. Use the variable name from the cartesian_line_extract, inside this function and remember to wrap it in square brackets as you can see in e.g.1 below.
If you wanted to use multiple arrays look at e.g. 2 below which will give you different coloured arrows for different var_arrays.
Basic format: "content_name": ["create_vector_plot",
["var_array1", "var_array2", ...],
"location_id",
"background_image_path",
"width",
"height",
["colour1", "colour2", ...],
"line_size",
"legend"
]
e.g.1: "vector_plot": ["create_vector_plot", ["Shot_line_data"], "#C4", "", 350, 250, ["red"], 2]
e.g.2: "vector_plot": ["create_vector_plot", ["Shot_line_data", "Pass_line_data], "#C4", "", 350, 250, ["red", "green"], 2]