Recommended · for beginners
Designing a Li-Ion Battery Gauge with the LM3914 - EEVblog #204
Why people recommend it
Dave Jones designs a Li-ion battery gauge with the LM3914 and works through the resistor values with Ohm's law; recommended for seeing the design process.
In their words
Designing a Li-Ion Battery Gauge with the LM3914 - EEVblog #204
Ignacio Vazquez-Abrams on electronics.stackexchange.com, Dec 2013. CC BY-SA.
For example Designing a Li-Ion Battery Gauge with the LM3914 - EEVblog #204 - this is already 5 years old.
Nick Gammon on arduino.stackexchange.com, Dec 2016. CC BY-SA.
Dave Jones at EEVBlog has a tutorial on using the LM3914 (for a Li-Ion, but you can see the design process and adapt as necessary)
Oli Glaser on electronics.stackexchange.com, Jan 2013. CC BY-SA.