Dynamic scale 10 LEDs

I wonder if you need such a node for the scale of 10 LEDs?


It takes readings from the analog pin and shows the level of the signal on a scale. If the signal is between the first second LED, then the second is lit at half brightness.

Example for 4 LEDs.