Help with strings

Hello guys, first post here and I am already asking for help haha.

I am trying to use an accelerometer (MPU6050) and make it output to processing but I don’t really understand how strings work between this two. I have 3 data inputs, one for each axis, and I want to be able to display all of them together in a graph.

I have been able to make one axis appear in the graph, and choose which axis I am displaying but I can’t get them to appear together. I am also able to obtain data from all three axis at the same time in the console but not in the graph.

The question is: How can I name a string and later on, choose that string in Processing to be displayed how I want? It’s all about naming and calling. Many thanks.

I have been able to make one axis appear in the graph

Not with the code you posted.