Trying to graph bicycle speed gear ratios

Hi, I was curious to know what my bicycle gear ratios were so I graphed them out in Calc (21 speed with 19 unique ratios ha ha). https://drive.google.com/file/d/0BwchTGPhjZv5bllVNFNkbDB0dkk/view?usp=sharing

I didn’t know how to calculate the b12:b34 range so I just entered them in manually. I was wondering if anyone knows how they could be calculated so I could play around with gears with different numbers of teeth and see the graph update automatically. Thanks!

I think easiest is to not explain but show. See the attached file.

gear ratios.ods