diff options
Diffstat (limited to 'components/valuation.py')
| -rw-r--r-- | components/valuation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/valuation.py b/components/valuation.py index d9b2147..407538e 100644 --- a/components/valuation.py +++ b/components/valuation.py @@ -4341,7 +4341,7 @@ def _render_earnings_history(ticker: str): + "</body></html>" ) - total_height = 1100 + n_total * 48 + total_height = 1500 + n_total * 52 components.html(doc, height=total_height, scrolling=False) @@ -4674,7 +4674,7 @@ def _render_historical_ratios(ticker: str): ' const yAt=v=>Pt+(1-(v-yMn)/(yMx-yMn))*(H-Pt-Pb);' ' const pts=subj.map((v,i)=>({x:xAt(i),y:v!==null?yAt(v):null,v}));' ' let segs=[],cur=[];' - ' pts.forEach(p=>{if(p.y!==null){cur.push(p);}else{if(cur.length){segs.push(cur);cur=[];}}})' + ' pts.forEach(p=>{if(p.y!==null){cur.push(p);}else{if(cur.length){segs.push(cur);cur=[];}}});' ' if(cur.length)segs.push(cur);' ' const lp=segs.map(seg=>seg.map((p,i)=>(i===0?"M":"L")+p.x.toFixed(1)+" "+p.y.toFixed(1)).join(" ")).join(" ");' ' const fp=pts.find(p=>p.y!==null);' |
