diff --git a/chart/function/create_chart.py b/chart/function/create_chart.py index 74cede3..ef866fa 100644 --- a/chart/function/create_chart.py +++ b/chart/function/create_chart.py @@ -87,7 +87,13 @@ async def create_chart( ) - plt.plot(newx_2, newy_2) + if rate[0] < rate[-1]: + plt.plot(newx_2, newy_2, color='green') + elif rate[0] > rate[-1]: + plt.plot(newx_2, newy_2, color='red', marker='o') + else: + plt.plot(newx_2, newy_2, color='grey') + plt.savefig(f'../charts/{name}.png') fig.clear()