The LM35 is a three-pin sensor that behaves like a tiny, linear voltage source: its output climbs by 10mV for every degree Celsius, with no calibration or lookup table needed on your part. At 22°C it's putting out roughly 220mV; at 40°C, roughly 400mV.
The LM3914 takes that single voltage at its SIG IN pin and compares it, internally, against ten evenly spaced points on a resistor ladder running between its RLO and RHI pins. RV1 and RV2 set where that ladder starts and stops — everything in between is divided automatically, five ways for a five-LED bar.
In bar mode, the chip doesn't just light the single LED nearest the reading — it lights that one and every LED below it, so the display fills like a thermometer rather than flickering between two neighbouring dots.
Two components that do the real work
RV1 and RV2 together are the entire calibration. Whatever voltage sits at RHI becomes "top LED lit"; whatever sits at RLO becomes "first LED lit." There's no other threshold to set anywhere in the circuit.
R1 sets a single reference current that the LM3914 then mirrors, identically, to whichever output pin is active — which is why none of the five LEDs need a resistor of their own.
Swap RHI and RLO's wiring and the bar simply reads backwards: full when cold, empty when hot.