An HR diagram plots stars by surface temperature on the x-axis and absolute magnitude on the y-axis. The temperature axis runs backwards, so hotter stars are on the left and cooler stars are on the right.
The Hertzsprung–Russell (HR) diagram (A-level only) Lesson