As you can see from the above link, the directivity is a function of the far field angles at a given frequency. The plot you showed might be either the max directivity at any direction, or at a specific direction. In both cases you will need first to calculate the directivity at each frequency.