I have generated the following plots from formula1 data, where, px.line() and px.scatter() was used seperately. This was done as I would like to indicate the tyre used by the driver for each lap (which was shown by px.scatter()) and px.line plotted the trace for lap times for a driver
When clicking on a driver(px.line()) in the legend, usually the graph clicked on, becomes invisible. In my case, The scatter plot for that line graph is still evident, observe below
Thank you for your response @RenaudLN, the reason I do not want to use a line plot alone, is because I would like to control the colour and symbols of the scatter plot independently from the line plot’s markers, but dependant on another column in my dataframe.
I’m also unable to use legendgroup because that only plotly.graph_objects can be used for that.
Mate, I have replicated this example in my code, in the attached link and I have run into another problem. In the context of your example, the values of other indices/rows (eg. beyond index 50) are taking on the value of the first 50. I have attached the link to my other post in this reply of yours. Any help would be appreciated.