Black Lives Matter. Please consider donating to Black Girls Code today.

How to Differentiate Stacked Points on Scatter Plot

I’ve got a fairly basic scatter plot but I’m struggeling to figure out how to add some differentaion between stacked points.

There is 10 points for each timestamp but as you can see there are 3 to 5 displayed due to the stacking.

fig = px.scatter(
    df,
    x="TestTime",
    y="CorrectedLoad",
    # jitter=0.3,
    color="PercentLoss",
    trendline="lowess",
    template="ggplot2",
    labels={
        "CorrectedLoad": "Throughput (Mbps)",
        "TestTime": "Test Timestamp",
        "PercentLoss": "Frames Lost (%)",
    },
)

I don’t really have a preferred method for resolving this. I no longer need the “PercentLoss” colored so I’m thinking to do that but not sure the appropriate way to get the count of each point.