@staticmethod
def display_graph(islands, scope=[], graphType='Cases'):
    if (graphType == 'Cases'):
        df = pd.read_csv('data.csv', index_col=False)
    else:
        df = App.get_df_change()
        if (scope[0] == 0):
            scope[0] = 1
    plt.figure(figsize=(8, 8))
    min_ = (- 1)
    max_ = (- 1)
    for island in islands:
        plt.plot(df['Date'], df[island], label=island)
        if (graphType == 'Cases'):
            if (scope != []):
                if ((min_ == (- 1)) and (max_ == (- 1))):
                    min_ = df[island].get(scope[0])
                    max_ = df[island].get(scope[1])
                else:
                    minNow = df[island].get(scope[0])
                    maxNow = df[island].get(scope[1])
                    if (minNow < min_):
                        min_ = minNow
                    elif (maxNow > max_):
                        max_ = maxNow
                plt.ylim(min_, max_)
    title = 'COVID Cases vs Time'
    if (scope != []):
        intervals = ((scope[1] - scope[0]) / 4)
        if (intervals < 1):
            intervals = 1
        plt.gca().xaxis.set_major_locator(matplotlib.dates.DayLocator(interval=math.floor(intervals)))
        plt.xlim(scope[0], scope[1])
        title = (((((title + ' (') + df['Date'].get(scope[0])) + ' to ') + df['Date'].get(scope[1])) + ')')
    else:
        plt.gca().xaxis.set_major_locator(matplotlib.dates.DayLocator(interval=30))
    plt.xlabel('Date')
    if (graphType == 'Cases'):
        plt.ylabel('# of Cases')
    else:
        plt.ylabel('Change in Cases')
        title = title.replace('COVID Cases', 'Change in COVID Cases')
    plt.title(title)
    plt.grid()
    plt.legend()
    plt.show()
@staticmethod
def display_graph(islands, scope=[], graphType='Cases'):
    if (graphType == 'Cases'):
        df = pd.read_csv('data.csv', index_col=False)
    else:
        df = App.get_df_change()
        if (scope[0] == 0):
            scope[0] = 1
    plt.figure(figsize=(8, 8))
    min_ = (- 1)
    max_ = (- 1)
    for island in islands:
        plt.plot(df['Date'], df[island], label=island)
        if (graphType == 'Cases'):
            if (scope != []):
                if ((min_ == (- 1)) and (max_ == (- 1))):
                    min_ = df[island].get(scope[0])
                    max_ = df[island].get(scope[1])
                else:
                    minNow = df[island].get(scope[0])
                    maxNow = df[island].get(scope[1])
                    if (minNow < min_):
                        min_ = minNow
                    elif (maxNow > max_):
                        max_ = maxNow
                plt.ylim(min_, max_)
    title = 'COVID Cases vs Time'
    if (scope != []):
        intervals = ((scope[1] - scope[0]) / 4)
        if (intervals < 1):
            intervals = 1
        plt.gca().xaxis.set_major_locator(matplotlib.dates.DayLocator(interval=math.floor(intervals)))
        plt.xlim(scope[0], scope[1])
        title = (((((title + ' (') + df['Date'].get(scope[0])) + ' to ') + df['Date'].get(scope[1])) + ')')
    else:
        plt.gca().xaxis.set_major_locator(matplotlib.dates.DayLocator(interval=30))
    plt.xlabel('Date')
    if (graphType == 'Cases'):
        plt.ylabel('# of Cases')
    else:
        plt.ylabel('Change in Cases')
        title = title.replace('COVID Cases', 'Change in COVID Cases')
    plt.title(title)
    plt.grid()
    plt.legend()
    plt.show()