aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorTyler <tyler@tylerhoang.xyz>2026-05-17 01:55:53 -0700
committerTyler <tyler@tylerhoang.xyz>2026-05-17 01:55:53 -0700
commit636086c5332b8aab5c1cc322bef1f3bb446a5add (patch)
treecdfef0fa0cb22427c1f677259dad46f457915581 /components
parentbb55d8be4a080e16227290333f667a5b39fa6575 (diff)
Fix Historical Ratios blank render and Earnings History height cutoff
Missing semicolon after pts.forEach() prevented ASI, causing a JS syntax error that silently killed all chart and matrix rendering. Also bumped Earnings History iframe height to stop the table from being clipped. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'components')
-rw-r--r--components/valuation.py4
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);'