Serial plotter looks different and doesnt print graph
The serial plotter expects you to send numbers, and only numbers. If it
reads any other text, like for example
“The distance is equal to 9.88cm”
It assumes these are the names of the columns of data that are to
follow. So it chooses one color for each column and prints the color key
on top of the graph.

What do I do??

Just remove the prose and print only the numbers. You may print
something like “distance(cm)” in setup() if you want to have the key
displayed, but that is not required.