fix: slot label literal, netqty filter, today-only closed, green/red payoff lines, SD+breakeven% annotations
This commit is contained in:
parent
b41839e529
commit
2540a89bae
1 changed files with 2 additions and 4 deletions
|
|
@ -590,10 +590,8 @@ async function loadPayoff() {
|
||||||
data: {
|
data: {
|
||||||
labels: xs,
|
labels: xs,
|
||||||
datasets: [
|
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:'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:'transparent', backgroundColor:'rgba(231,76,60,0.18)', tension:0, pointRadius:0, 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}]
|
||||||
{ label:'P&L', data:ys, borderColor:'#FF6B4A', borderWidth:2.5, tension:0, pointRadius:0, fill:false }
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
responsive:true, maintainAspectRatio:false, animation:false,
|
responsive:true, maintainAspectRatio:false, animation:false,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue