All sources are available on Github. Go to the Gallery. CC (BY) N. Lambert (neocarto).
This example shows how to combine a bubble map (with count values) and a gradient of colors (with rate values).