Public
Edited
Jan 18, 2024
1 star
Insert cell
Insert cell
Insert cell
Insert cell

# 运行总本金:**${info.totalMoney.toFixed(1)}**万元
## 统计周期:*${(configs.months/12).toFixed(1)}*年
<!-- ## [${configs.coin}](https://www.binance.com/zh-CN/trade/${configs.coin}_USDT?type=spot)币价:${info.coinPrice?info.coinPrice.toFixed(1)+ "元":'<div style="display: contents;color: red;">交易所不存在此币!</div>'} -->

---
### 小电脑数量:*${info.numberPC}*台
### 小电脑采购费用:*${info.computerMoneys.toFixed()}*万元
##### 前期基本建设费用=>总*${(info.baseHardwareFees + info.basenetWorkFees + info.baseRent*3).toFixed(1)}*元, 3月房租:*${info.baseRent}*元,场地硬件:*${info.baseHardwareFees.toFixed(1)}*元,网络:*${info.basenetWorkFees.toFixed(1)}*元
---
### 最终机器数量:*${info.amounts[info.amounts.length -1]}*台
### 回本时间:${info.targetMonth!=undefined?("*" + (info.targetMonth/12).toFixed(1) +"*年"+",第*"+info.targetMonth+"*个月"):'<div style="display: contents;color: red;">无法回本!</div>'}
### 整个周期累积纯获利 *${info.monthTotalRewards[info.monthTotalRewards.length-1].toFixed(1)}*万元
### 总资产:*${(info.monthTotalRewards[info.monthTotalRewards.length-1] + info.computerMoneys).toFixed(1)}*万元
# 投资回报率:*${(configs.months/12).toFixed(1)}年, ${((info.monthTotalRewards[info.monthTotalRewards.length-1] - info.totalMoney).toFixed(1)*100/info.totalMoney).toFixed(1)}*%
---

Insert cell
table =Inputs.table(info.tables,info.tableOptions)
Insert cell
Insert cell
curv1 = Plot.plot({
x: {label: "月数"},
y: {label: "金额(万元)"},
aspectRatio: undefined,
color: {
legend: true,
domain: [
"总投入",
"机器成本",
"累积盈利",
"总资产"
],
range: ["green", "red", "blue","yellow"]
},
marks: [
Plot.frame(),
Plot.lineY(info.totalbase,{tip: true,stroke: "red"}),
Plot.line([[0,info.totalMoney],[configs.months,info.totalMoney]],{tip: true,stroke: "green"}),
Plot.lineY(info.monthTotalRewards, {curve: "catmull-rom",tip: true,stroke: "blue"}),
Plot.lineY(info.totalAssets, {curve: "catmull-rom",tip: true,stroke: "yellow"}),
]
})
Insert cell
Insert cell
curv3=Plot.plot({
x: {label: "月数"},
y: {label: "元",grid: true},
color: {
legend: true,
domain: [
"硬件维护",
"宽带费用",
"房屋费用",
"人员成本",
],
range: ["green", "red", "blue","skyblue"]
},
marks: [
Plot.frame(),
Plot.lineY(info.hardwareMaintenances, {curve: "catmull-rom",tip: true,stroke: "green"}),
Plot.lineY(info.networkFees, {curve: "catmull-rom",tip: true,stroke: "red"}),
Plot.lineY(info.rentFees, {curve: "catmull-rom",tip: true,stroke: "blue"}),
Plot.lineY(info.maintenanceStaffFees, {curve: "catmull-rom",tip: true,stroke: "skyblue"}),
]
})
Insert cell
Insert cell
Plot.plot({
x: {label: "月数"},
y: {label: "元",grid: true},
color: {
legend: true,
domain: [
"电费(元)"
],
range: ["green", "red", "blue","skyblue"]
},
marks: [
Plot.frame(),
Plot.lineY(info.powerFees, {curve: "catmull-rom",tip: true,stroke: "green"}),
]
})
Insert cell
Insert cell
curv2=Plot.plot({
x: {label: "月数"},
y: {label: "数量",grid: true},
color: {
legend: true,
domain: [
"小电脑数量"
],
range: ["green", "red", "blue","skyblue"]
},
marks: [
Plot.frame(),
Plot.lineY(info.amounts, {curve: "catmull-rom",tip: true,stroke: "green"}),
]
})
Insert cell
Insert cell
curv4=Plot.plot({
x: {label: "月数"},
y: {label: "数量",grid: true},
color: {
legend: true,
domain: [
"房屋数量",
"宽带数量",
"维护人员",
],
range: ["green", "red", "blue","skyblue"]
},
marks: [
Plot.frame(),
Plot.lineY(info.rooms, {curve: "catmull-rom",tip: true,stroke: "green"}),
Plot.lineY(info.networks, {curve: "catmull-rom",tip: true,stroke: "red"}),
Plot.lineY(info.maintenanceStaffs, {curve: "catmull-rom",tip: true,stroke: "blue"}),
]
})
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more