PageSourceSearch

https://beanvest.com/_nuxt/BKwpesKz.js

js beanvest.com collected 2026-10-08 17:47:42 UTC 2,268 bytes, 1 lines download raw bytes

1import{B as n,d as l,o as d,e as t,f as r,p,m as u,z as c}from"#entry";import{C as f,L as b,P as m,b as y,p as h,c as g,d as _,S as R}from"./BtWwN_di.js";const x={class:"my-8"},C={class:"bg-gray-50 rounded-lg p-4 sm:p-6 border border-gray-100"},S=n({__name:"SharpeRatioChart",setup(k){f.register(b,m,y,h,g,_);const s={datasets:[{label:"Fund A (Sharpe: 0.60)",data:[{x:15,y:12}],backgroundColor:"#3b82f6",borderColor:"#3b82f6",pointRadius:10,pointHoverRadius:13},{label:"Fund B (Sharpe: 0.86)",data:[{x:7,y:9}],backgroundColor:"#059669",borderColor:"#059669",pointRadius:10,pointHoverRadius:13},{label:"Risk-Free Rate",data:[{x:0,y:3}],backgroundColor:"#94a3b8",borderColor:"#94a3b8",pointRadius:8,pointHoverRadius:10,pointStyle:"triangle"},{label:"Sharpe line (Fund A)",data:[{x:0,y:3},{x:20,y:15}],borderColor:"rgba(59, 130, 246, 0.3)",borderWidth:1.5,borderDash:[5,5],pointRadius:0,showLine:!0,fill:!1},{label:"Sharpe line (Fund B)",data:[{x:0,y:3},{x:12,y:13.29}],borderColor:"rgba(5, 150, 105, 0.3)",borderWidth:1.5,borderDash:[5,5],pointRadius:0,showLine:!0,fill:!1}]},i={responsive:!0,maintainAspectRatio:!0,aspectRatio:1.6,plugins:{legend:{position:"top",labels:{usePointStyle:!0,padding:12,font:{family:"Inter, system-ui, sans-serif",size:11},filter:e=>!e.text.includes("Sharpe line")}},tooltip:{callbacks:{label:e=>e.dataset.label.includes("Sharpe line")?"":`${e.dataset.label} — Risk: ${e.parsed.x}%, Return: ${e.parsed.y}%`}}},scales:{x:{title:{display:!0,text:"Risk (Standard Deviation %)",font:{family:"Inter, system-ui, sans-serif",size:12}},grid:{color:"#f3f4f6"},min:0,max:20,ticks:{font:{family:"Inter, system-ui, sans-serif",size:11},callback:e=>`${e}%`}},y:{title:{display:!0,text:"Annual Return %",font:{family:"Inter, system-ui, sans-serif",size:12}},grid:{color:"#f3f4f6"},min:0,max:16,ticks:{font:{family:"Inter, system-ui, sans-serif",size:11},callback:e=>`${e}%`}}}};return(e,a)=>{const o=c;return d(),l("figure",x,[t("div",C,[r(o,null,{default:p(()=>
1[r(u(R),{data:s,options:i})]),_:1})]),a[0]||(a[0]=t("figcaption",{class:"text-center text-sm text-gray-500 mt-3"}," Risk vs. return comparison: Fund B has a better Sharpe ratio despite lower absolute returns ",-1))])}}}),z=Object.assign(S,{__name:"SharpeRatioChart"});export{z as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.