ThinkSpeak, beginners problem

Hello
i try to use ThinkSpeak and i have a small problem that i can’t fix.
i use the original code and it works fine, but i don’t know how to make small changes to it.

i want to see in ThinkSpeak 2 graphs, one to show “x” and one to show “y”.

i add here my new code.

can you please try to explain how i fix my code ?

This is the code, and after it i added the original code which works fine

THIS IS THE ORIGINAL CODE THAT WORKS GREAT
void setup() {
}
void loop() {
String i = String(random(60, 80));
Particle.publish(“temp”, i, PRIVATE);
}

AND THIS IS THE NEW CODE THAT DOESN’T WORK

void setup() {
int x=1;
int y=2;
}
void loop() {
Particle.publish(“temp”, x, PRIVATE);
Particle.publish(“temp”, y, PRIVATE);
}

6 posts were merged into an existing topic: Thingspeak for beginners