A new analysis of medical data from around the world found that 1.3 billion people will be living with diabetes by 2050.