Skip to content

Commit bff2ffb

Browse files
authored
Merge pull request #189 from VisActor/release/2.0.3
[Auto release] release 2.0.3
2 parents ac84561 + 5bcc429 commit bff2ffb

File tree

33 files changed

+413
-90
lines changed

33 files changed

+413
-90
lines changed

common/config/rush/pnpm-lock.yaml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/config/rush/version-policies.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
"definitionName": "lockStepVersion",
44
"policyName": "vmindMin",
5-
"version": "2.0.2",
5+
"version": "2.0.3",
66
"mainProject": "@visactor/vmind",
77
"nextBump": "patch"
88
}

docs/assets/changelog/en/release.md

+56-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,59 @@
1+
# v2.0.3
2+
3+
2025-03-04
4+
5+
**🆕 New Features**
6+
7+
- **atom**: VMind's internal atomization feature now supports function call capability
8+
9+
**🔖 Fixes**
10+
11+
- **chartGeneration**: Fixed issues where stacked/percentage bar charts were not working, and bar charts were not generating correctly
12+
- **getInsights**: Fixed an issue where, if chart values were strings, the original data obtained by insights was converted to number type, potentially causing incorrect matches
13+
14+
**🔖 Others**
15+
16+
- **@visactor/vmind**: Optimized type definitions
17+
18+
# v2.0.2
19+
20+
2025-02-23
21+
22+
23+
**🔖 Fix**
24+
25+
- **@visactor/vmind**: fix fieldinfo may undefiend while chart-advistor
26+
27+
[more detail about v2.0.2](https://github.com/VisActor/VMind/releases/tag/v2.0.2)
28+
29+
# v2.0.1
30+
31+
2025-02-21
32+
33+
34+
**🆕 New feature**
35+
36+
- **@visactor/vmind**: Support DeepSeek and other custom model with api-key
37+
- **@visactor/vmind**: 12 new chart types added for chart generation
38+
- **@visactor/vmind**: Add text2Chart API
39+
- **@visactor/vmind**: Add getInsights API
40+
41+
**🔖 other**
42+
43+
- **@visactor/vmind**: Overall architecture upgrade
44+
45+
46+
[more detail about v2.0.1](https://github.com/VisActor/VMind/releases/tag/v2.0.1)
47+
148
# v1.2.12
249

350
2024-06-17
451

552

653
**🔖 New featureure**
7-
8-
- **@visactor/vmind**: intelligent insight module
9-
- **@visactor/vmind**: add custom model type support
54+
55+
- **@visactor/vmind**: intelligent insight module
56+
- **@visactor/vmind**: add custom model type support
1057
- **@visactor/vmind**: take skylark model when no model type match
1158

1259
[more detail about v1.2.12](https://github.com/VisActor/VMind/releases/tag/v1.2.12)
@@ -17,7 +64,7 @@
1764

1865

1966
**🐛 Fixes**
20-
67+
2168
Fix reference error in node.
2269

2370
[more detail about v1.2.11](https://github.com/VisActor/VMind/releases/tag/v1.2.11)
@@ -28,13 +75,13 @@ Fix reference error in node.
2875

2976

3077
**🆕 New New featureures**
31-
32-
- **@visactor/vmind**: Refactored the VMind basic framework: abstracted TaskNode, Application class, used Meta for flow arrangement, and improved code reusability and scalability.
33-
- **@visactor/vmind**: Intelligent chart generation: supports generating spec templates without a data set; supports filling data into spec templates.
34-
- **@visactor/vmind**: Intelligent chart generation: supports selecting chart types from a specified list of chart types.
78+
79+
- **@visactor/vmind**: Refactored the VMind basic framework: abstracted TaskNode, Application class, used Meta for flow arrangement, and improved code reusability and scalability.
80+
- **@visactor/vmind**: Intelligent chart generation: supports generating spec templates without a data set; supports filling data into spec templates.
81+
- **@visactor/vmind**: Intelligent chart generation: supports selecting chart types from a specified list of chart types.
3582

3683
**🐛 Fixes**
37-
84+
3885
Intelligent data aggregation: replaced alasql keyword in SQL to further improve the success rate of SQL execution.
3986

4087
[more detail about v1.2.9](https://github.com/VisActor/VMind/releases/tag/v1.2.9)

docs/assets/changelog/zh/release.md

+57-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,60 @@
1+
# v2.0.3
2+
3+
2025-03-04
4+
5+
**🆕 新增功能**
6+
7+
- **atom**: VMind内部原子化功能支持function call能力
8+
9+
**🔖 Fix**
10+
11+
- **chartGeneration**: 修复堆积类/百分比柱图不生效的问题,修复条形图无法正确生成的问题
12+
- **getInsights**: 修复当图表数值为string时,洞察得到的原始数据为转为number类型的数据项,导致匹配可能有误的问题
13+
14+
**🔖 其他**
15+
16+
- **@visactor/vmind**: 类型定义优化
17+
18+
19+
# v2.0.2
20+
21+
2025-02-23
22+
23+
24+
**🔖 Fix**
25+
26+
- **@visactor/vmind**: fix fieldinfo may undefiend while chart-advistor
27+
28+
[更多详情请查看 v2.0.2](https://github.com/VisActor/VMind/releases/tag/v2.0.2)
29+
30+
# v2.0.1
31+
32+
2025-02-21
33+
34+
35+
**🆕 新增功能**
36+
37+
- **@visactor/vmind**: Support DeepSeek and other custom model with api-key
38+
- **@visactor/vmind**: 12 new chart types added for chart generation
39+
- **@visactor/vmind**: Add text2Chart API
40+
- **@visactor/vmind**: Add getInsights API
41+
42+
**🔖 其他**
43+
44+
- **@visactor/vmind**: Overall architecture upgrade
45+
46+
47+
[更多详情请查看 v2.0.1](https://github.com/VisActor/VMind/releases/tag/v2.0.1)
48+
149
# v1.2.12
250

351
2024-06-17
452

553

654
**🔖 新增功能ure**
7-
8-
- **@visactor/vmind**: intelligent insight module
9-
- **@visactor/vmind**: add custom model type support
55+
56+
- **@visactor/vmind**: intelligent insight module
57+
- **@visactor/vmind**: add custom model type support
1058
- **@visactor/vmind**: take skylark model when no model type match
1159

1260
[更多详情请查看 v1.2.12](https://github.com/VisActor/VMind/releases/tag/v1.2.12)
@@ -17,7 +65,7 @@
1765

1866

1967
**🐛 Fixes**
20-
68+
2169
Fix reference error in node.
2270

2371
[更多详情请查看 v1.2.11](https://github.com/VisActor/VMind/releases/tag/v1.2.11)
@@ -28,13 +76,13 @@ Fix reference error in node.
2876

2977

3078
**🆕 New 新增功能ures**
31-
32-
- **@visactor/vmind**: Refactored the VMind basic framework: abstracted TaskNode, Application class, used Meta for flow arrangement, and improved code reusability and scalability.
33-
- **@visactor/vmind**: Intelligent chart generation: supports generating spec templates without a data set; supports filling data into spec templates.
34-
- **@visactor/vmind**: Intelligent chart generation: supports selecting chart types from a specified list of chart types.
79+
80+
- **@visactor/vmind**: Refactored the VMind basic framework: abstracted TaskNode, Application class, used Meta for flow arrangement, and improved code reusability and scalability.
81+
- **@visactor/vmind**: Intelligent chart generation: supports generating spec templates without a data set; supports filling data into spec templates.
82+
- **@visactor/vmind**: Intelligent chart generation: supports selecting chart types from a specified list of chart types.
3583

3684
**🐛 Fixes**
37-
85+
3886
Intelligent data aggregation: replaced alasql keyword in SQL to further improve the success rate of SQL execution.
3987

4088
[更多详情请查看 v1.2.9](https://github.com/VisActor/VMind/releases/tag/v1.2.9)

packages/calculator/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@visactor/calculator",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "SQL-like query executor with DSL",
55
"main": "lib",
66
"module": "es",

packages/chart-advisor/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@visactor/chart-advisor",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "图表推荐模块",
55
"main": "lib",
66
"module": "es",

packages/vmind/CHANGELOG.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"name": "@visactor/vmind",
33
"entries": [
4+
{
5+
"version": "2.0.3",
6+
"tag": "@visactor/vmind_v2.0.3",
7+
"date": "Tue, 04 Mar 2025 08:58:32 GMT",
8+
"comments": {}
9+
},
410
{
511
"version": "2.0.2",
612
"tag": "@visactor/vmind_v2.0.2",
@@ -164,4 +170,4 @@
164170
"comments": {}
165171
}
166172
]
167-
}
173+
}

packages/vmind/CHANGELOG.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
# Change Log - @visactor/vmind
22

3-
This log was last generated on Sun, 23 Feb 2025 10:21:08 GMT and should not be manually modified.
3+
This log was last generated on Tue, 04 Mar 2025 08:58:32 GMT and should not be manually modified.
4+
5+
## 2.0.3
6+
Tue, 04 Mar 2025 08:58:32 GMT
7+
8+
### Updates
9+
10+
- Fixed issues where stacked/percentage bar charts were not working, and bar charts were not generating correctly
11+
- Fixed an issue where, if chart values were strings, the original data obtained by insights was converted to number type, potentially causing incorrect matches
12+
- Optimized type definitions
13+
- Feat: VMind's internal atomization feature now supports function call capability
14+
415

516
## 2.0.2
617
Sun, 23 Feb 2025 10:21:08 GMT

packages/vmind/__tests__/browser/src/pages/Insight/DataInput.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ export function DataInput(props: IPropsType) {
9797
const specJson = JSON5.parse(spec);
9898
const { insights } = await vmind.current.getInsights(specJson, {
9999
maxNum: numLimits,
100+
algorithmOptions: {
101+
pearsonCorrelation: { withoutSeries: true, threshold: 0.75 },
102+
lofOutlier: { threshold: 2 },
103+
statisticsBase: { defaultLeftAxisName: '左轴', defaultRightAxisName: '右轴' }
104+
},
100105
detailMaxNum: [
101106
{ types: ['outlier', 'pair_outlier', 'extreme_value', 'turning_point', 'majority_value'], maxNum: 3 },
102107
{ types: ['abnormal_band'], maxNum: 3 },

packages/vmind/__tests__/experiment/src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function revisedTestData(data: DataExtractionResult, reGenerateDataClean = false
4848
dataset: caseResult.dataset,
4949
fieldInfoResult: caseResult.fieldInfoResult,
5050
defaultResult: caseResult.defaultResult.map(v => {
51-
dataClean.reset(v.context as any);
51+
dataClean.reset(v.context);
5252
return {
5353
...v,
5454
dataClean: dataClean._runWithOutLLM()

packages/vmind/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@visactor/vmind",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"main": "cjs/index.js",
55
"module": "esm/index.js",
66
"types": "esm/index.d.ts",
@@ -93,14 +93,14 @@
9393
},
9494
"dependencies": {
9595
"chroma-js": "^3.1.1",
96-
"@visactor/chart-advisor": "workspace:2.0.2",
96+
"@visactor/chart-advisor": "workspace:2.0.3",
9797
"@visactor/vdataset": "~0.17.4",
9898
"@visactor/vutils": "~0.17.4",
9999
"axios": "^1.4.0",
100100
"json5": "~2.2.3",
101101
"dayjs": "~1.11.10",
102102
"js-yaml": "~4.1.0",
103-
"@visactor/calculator": "workspace:2.0.2",
103+
"@visactor/calculator": "workspace:2.0.3",
104104
"alasql": "~4.3.2",
105105
"@visactor/vchart-theme": "^1.11.2",
106106
"jstat": "~1.9.6",

packages/vmind/src/applications/dataExtraction/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ export const getText2ChartSchedule = (llm: LLMManage, options: ILLMOptions) => {
1919
return new Schedule(
2020
[AtomName.DATA_EXTRACT, AtomName.DATA_CLEAN, AtomName.DATA_QUERY, AtomName.CHART_COMMAND, AtomName.CHART_GENERATE],
2121
{
22-
base: { llm, showThoughts: options?.showThoughts }
22+
base: { llm, showThoughts: options?.showThoughts },
23+
chartGenerate: { useChartRule: true }
2324
}
2425
);
2526
};

0 commit comments

Comments
 (0)