- System.Windows.Forms.DataVisualization.Charting:ChartAreas、Legends、Titles、Series (ChartType、Points.AddXY、图例文字等),DataSource + DataBind(DataTable / DataView / DataSet, 按 XValueMember、YValueMembers 取列);数据变化时把各系列的点发给浏览器 - 浏览器用 Chart.js 画:SeriesChartType 对应折线、柱形、饼图等,WinForms 默认的 BrightPastel 配色,不要动画 - 设计器工具箱加"图表",和 VS 一样带 ChartArea1、Legend1、Series1;属性窗口"系列和图例"对话框 编辑系列(名称、图表类型、图例、图例文字、X / Y 值字段)和图例,按 VS 的格式和顺序写回 Designer.cs, 对话框不管的属性原样保留,教材项目 8 的图表读入再写出逐字节不变;删除图表时一起删掉局部变量; 设计时用示例数据预览 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
599 B
JSON
27 lines
599 B
JSON
{
|
|
"name": "@iot/web",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "bun --bun vite",
|
|
"build": "vue-tsc --noEmit && bun --bun vite build",
|
|
"typecheck": "vue-tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@iot/shared": "workspace:*",
|
|
"chart.js": "^4.6.1",
|
|
"modern-screenshot": "^4.7.0",
|
|
"monaco-editor": "^0.57.0",
|
|
"naive-ui": "^2.41.0",
|
|
"vue": "^3.5.0",
|
|
"vue-router": "^4.6.4"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "^1.2.0",
|
|
"@vitejs/plugin-vue": "^6.0.0",
|
|
"typescript": "^5.8.0",
|
|
"vite": "^7.0.0",
|
|
"vue-tsc": "^3.0.0"
|
|
}
|
|
}
|