CoolFace
Apppublic

harshapitla/stackoverflow

sourceHugging Facemitupdated 9mo agoView on Hugging Face
0likes
788.5a423cc9.chunk.js2 linesDownload Raw Back to js
1"use strict";(self.webpackChunkreact_template=self.webpackChunkreact_template||[]).push([[788],{15:(e,t,a)=>{a.d(t,{A:()=>r});a(5043);var i=a(579);function r(e){let{title:t,subtitle:a,children:r,actions:l,footer:n}=e;return(0,i.jsxs)("section",{className:"card chart-card",children:[(t||a||l)&&(0,i.jsxs)("div",{className:"chart-card-header",children:[(0,i.jsxs)("div",{children:[t&&(0,i.jsx)("h3",{className:"chart-card-title",children:t}),a&&(0,i.jsx)("p",{className:"chart-card-subtitle",children:a})]}),l&&(0,i.jsx)("div",{className:"chart-card-actions",children:l})]}),(0,i.jsx)("div",{className:"chart-card-body",children:r}),n&&(0,i.jsx)("div",{className:"chart-card-footer",children:n})]})}},5788:(e,t,a)=>{a.r(t),a.d(t,{default:()=>f});var i=a(5043),r=a(379),l=a(1180),n=a(7734),s=a(4980),d=a(2185),o=a(6026),c=a(5847),u=a(2458),h=a(15),g=a(579);function p(e){if(null===e||void 0===e)return null;const t=Number(e);return isNaN(t)?null:t}function m(e){let{active:t,payload:a}=e;if(t&&a&&a.length){const e=a[0].payload;return(0,g.jsxs)("div",{style:{background:"#ffffff",padding:"10px 14px",borderRadius:6,border:"1px solid #cbd5e1",maxWidth:260},children:[(0,g.jsx)("strong",{children:e.title}),(0,g.jsxs)("div",{style:{marginTop:6},children:["\u2b50 Rating: ",e.rating.toFixed(2)]}),(0,g.jsxs)("div",{children:["\ud83d\udc65 Users: ",e.usage.toLocaleString()]}),(0,g.jsxs)("div",{children:["\ud83d\udce3 Followers: ",e.followers.toLocaleString()]})]})}return null}function f(e){let{rows:t=[]}=e;const a=(0,i.useMemo)(()=>Array.isArray(t)?t.map(e=>{const t=p(e.rating_average),a=p(e.used_by_count),i=p(e.followers_count);return null===t||null===a||null===i?null:t>=4&&a>=20&&i<=500?{title:e.title,rating:t,usage:a,followers:i,size:a}:null}).filter(Boolean):[],[t]);return a.length?(0,g.jsxs)(h.A,{title:"Hidden Gems",subtitle:"High-rated products with strong usage but low visibility",children:[(0,g.jsx)(l.u,{width:"100%",height:450,children:(0,g.jsxs)(u.t,{margin:{top:30,right:40,left:20,bottom:60},children:[(0,g.jsx)(n.d,{strokeDasharray:"3 3"}),(0,g.jsx)(d.W,{type:"number",dataKey:"rating",domain:[3.5,5],label:{value:"Average Rating",position:"insideBottom",offset:-10}}),(0,g.jsx)(o.h,{type:"number",dataKey:"usage",tickFormatter:e=>e.toLocaleString(),label:{value:"Active Users",angle:-90,position:"insideLeft"}}),(0,g.jsx)(c.K,{type:"number",dataKey:"size",range:[80,500],name:"Usage Intensity"}),(0,g.jsx)(r.m,{content:(0,g.jsx)(m,{})}),(0,g.jsx)(s.X,{data:a,fill:"#16a34a",opacity:.75})]})}),(0,g.jsxs)("div",{style:{marginTop:18},children:[(0,g.jsx)("strong",{children:"Key Insights"}),(0,g.jsxs)("ul",{style:{marginTop:8,paddingLeft:18},children:[(0,g.jsx)("li",{children:"The largest bubble in the chart represents the strongest hidden gem, indicating a product with high average rating, significant real-world usage, and low follower count, making it a high-impact yet underrated tool."}),(0,g.jsx)("li",{children:"Top Hidden Gem: Xcode stands out with an average rating of 5, 115 active users, and only 464 followers, clearly demonstrating quality-driven adoption without widespread popularity."})]})]})]}):(0,g.jsx)(h.A,{title:"High-Quality Products which are not famous",subtitle:"High-quality products with real adoption",children:(0,g.jsx)("p",{className:"small",children:"No hidden gems detected with current criteria."})})}},5847:(e,t,a)=>{a.d(t,{K:()=>c});var i=a(5043),r=a(8360),l=a(787),n=a(773),s=a(6371);function d(e){var t=(0,l.j)();return(0,i.useEffect)(()=>(t((0,r.D4)(e)),()=>{t((0,r.Gc)(e))}),[e,t]),null}var o={zAxisId:0,range:n.N8.range,scale:n.N8.scale,type:n.N8.type};function c(e){var t=(0,s.e)(e,o);return i.createElement(d,{domain:t.domain,id:t.zAxisId,dataKey:t.dataKey,name:t.name,unit:t.unit,range:t.range,scale:t.scale,type:t.type,allowDuplicatedCategory:n.N8.allowDuplicatedCategory,allowDataOverflow:n.N8.allowDataOverflow,reversed:n.N8.reversed,includeHidden:n.N8.includeHidden})}c.displayName="ZAxis"}}]);2//# sourceMappingURL=788.5a423cc9.chunk.js.map