helper functions to calculate graph scale
ds store issue