From 1fd9ab67cad0991833d69683b80c57fc93eabff8 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Tue, 12 Nov 2024 13:56:35 -0300 Subject: [PATCH] fix: DCA detail chart reloads zoomed in --- app/templates/dca/fragments/strategy/details.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/dca/fragments/strategy/details.html b/app/templates/dca/fragments/strategy/details.html index 9433abe..f45c216 100644 --- a/app/templates/dca/fragments/strategy/details.html +++ b/app/templates/dca/fragments/strategy/details.html @@ -200,7 +200,7 @@ stepped: true, segment: { borderColor: ctx => { - return ctx.p0.parsed.y >= 0 && ctx.p1.parsed.y >= 0 ? 'rgb(75, 192, 75)' : + return ctx.p0.parsed.y >= 0 && ctx.p1.parsed.y >= 0 ? 'rgb(75, 192, 75)' : ctx.p0.parsed.y < 0 && ctx.p1.parsed.y < 0 ? 'rgb(255, 99, 132)' : ctx.p0.parsed.y < 0 ? 'rgb(255, 99, 132)' : 'rgb(75, 192, 75)'; }