Skip to content

Commit 2ac7f29

Browse files
committed
feat: 新增堆叠折线图
1 parent 120f05f commit 2ac7f29

File tree

8 files changed

+515
-15
lines changed

8 files changed

+515
-15
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
- [4.1 折线图](#41-折线图)
5656
- [4.1.1 基础折线图](#411-基础折线图)
5757
- [4.1.2 平行折线图](#412-平行折线图)
58+
- [4.1.3 堆叠折线图](#413-堆叠折线图)
5859
- [4.2 散点图](#42-散点图)
5960
- [4.2.1 基础散点图](#421-基础散点图)
6061
- [4.2.2 三维散点图](#422-三维散点图)
@@ -406,6 +407,16 @@ PsychPen 支持所有实现了 [function calling](https://platform.openai.com/do
406407

407408
![](readme/plot-2.png)
408409

410+
#### 4.1.3 堆叠折线图
411+
412+
在堆叠折线图页面中, 你可以选择你要进行绘图的变量的类型 (被试内变量/被试间变量). 如果是被试内变量, 你需要选择你要进行绘图的变量 (即X轴上的不同值); 如果是被试间变量, 你需要选择你要进行检验的数据变量 (Y轴数据) 和分组变量 (X轴上的不同值). 再选择一个变量作为堆叠变量, 以它的不同取值来区分不同的折线. 点击 `生成` 按钮即可生成图片, 生成后, 点击 `保存图片` 按钮可以保存图片
413+
414+
此外, 你还可以自定义 X 轴和 Y 轴的标签、选择折线图显示的统计量、是否启用折线平滑、是否显示数据标签
415+
416+
| 被试内变量 | 被试间变量 |
417+
| :--------------------: | :--------------------: |
418+
| ![](readme/plot-18.png) | ![](readme/plot-19.png) |
419+
409420
### 4.2 散点图
410421

411422
#### 4.2.1 基础散点图

bun.lockb

38.2 KB
Binary file not shown.

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
"dependencies": {
3131
"@ant-design/icons": "^6.0.0",
3232
"@ant-design/v5-patch-for-react-19": "^1.0.3",
33-
"@ant-design/x": "^1.5.0",
33+
"@ant-design/x": "^1.6.0",
3434
"@leaf/parse-think": "npm:@jsr/leaf__parse-think",
3535
"@psych/lib": "npm:@jsr/psych__lib",
3636
"@psych/sheet": "npm:@jsr/psych__sheet",
3737
"ag-grid-community": "^33.3.2",
3838
"ag-grid-react": "^33.3.2",
39-
"antd": "^5.26.5",
39+
"antd": "^5.26.7",
4040
"bowser": "^2.11.0",
41-
"echarts": "^5.6.0",
41+
"echarts": "^6.0.0",
4242
"echarts-gl": "^2.0.9",
4343
"echarts-stat": "^1.2.0",
4444
"echarts-wordcloud": "^2.1.0",
@@ -49,25 +49,25 @@
4949
"marked": "^15.0.12",
5050
"marked-katex-extension": "^5.1.5",
5151
"ml-kmeans": "^6.0.0",
52-
"openai": "^5.10.1",
53-
"react": "^19.1.0",
54-
"react-dom": "^19.1.0",
52+
"openai": "^5.12.0",
53+
"react": "^19.1.1",
54+
"react-dom": "^19.1.1",
5555
"react-error-boundary": "^6.0.0",
5656
"zod": "^3.25.76",
57-
"zustand": "^5.0.6"
57+
"zustand": "^5.0.7"
5858
},
5959
"devDependencies": {
60-
"@biomejs/biome": "^2.1.2",
60+
"@biomejs/biome": "^2.1.3",
6161
"@tailwindcss/vite": "^4.1.11",
62-
"@types/bun": "^1.2.18",
63-
"@types/react": "^19.1.8",
64-
"@types/react-dom": "^19.1.6",
65-
"@vitejs/plugin-react": "^4.6.0",
62+
"@types/bun": "^1.2.19",
63+
"@types/react": "^19.1.9",
64+
"@types/react-dom": "^19.1.7",
65+
"@vitejs/plugin-react": "^4.7.0",
6666
"babel-plugin-react-compiler": "19.1.0-rc.2",
67-
"commit-and-tag-version": "^12.5.1",
67+
"commit-and-tag-version": "^12.5.2",
6868
"tailwindcss": "^4.1.11",
69-
"typescript": "^5.8.3",
70-
"vite": "^7.0.5"
69+
"typescript": "^5.9.2",
70+
"vite": "^7.0.6"
7171
},
7272
"commit-and-tag-version": {
7373
"types": [

readme/plot-18.png

229 KB
Loading

readme/plot-19.png

208 KB
Loading

0 commit comments

Comments
 (0)