fix: slot label literal, netqty filter, today-only closed, green/red payoff lines, SD+breakeven% annotations

This commit is contained in:
Manohar 2026-05-15 10:14:02 +05:30
parent b41839e529
commit 2540a89bae

View file

@ -590,10 +590,8 @@ async function loadPayoff() {
data: {
labels: xs,
datasets: [
{ label:'Profit Zone', data:ys.map(function(y){return y>=0?y:0;}), borderColor:'transparent', backgroundColor:'rgba(46,204,113,0.18)', tension:0, pointRadius:0, fill:true },
{ label:'Loss Zone', data:ys.map(function(y){return y<0?y:0;}), borderColor:'transparent', backgroundColor:'rgba(231,76,60,0.18)', tension:0, pointRadius:0, fill:true },
{ label:'P&L', data:ys, borderColor:'#FF6B4A', borderWidth:2.5, tension:0, pointRadius:0, fill:false }
]
{label:'Profit Zone',data:ys.map(function(y){return y>=0?y:0;}),borderColor:'rgba(46,204,113,0.85)',backgroundColor:'rgba(46,204,113,0.12)',tension:0,pointRadius:0,borderWidth:2,fill:true},
{label:'Loss Zone',data:ys.map(function(y){return y<=0?y:0;}),borderColor:'rgba(231,76,60,0.85)',backgroundColor:'rgba(231,76,60,0.12)',tension:0,pointRadius:0,borderWidth:2,fill:true}]
},
options: {
responsive:true, maintainAspectRatio:false, animation:false,