fix: DCA detail chart reloads zoomed in

This commit is contained in:
Herculino Trotta
2024-11-12 13:56:35 -03:00
parent da39fa1476
commit 1fd9ab67ca

View File

@@ -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)';
}