Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
bedf25b
fix: fix the issue of setDimensionIndex
xuefei1313 Nov 7, 2025
2f34af1
feat: support showCrosshair api
xuefei1313 Nov 10, 2025
ba9639e
docs: add regression demo in marker
xuefei1313 Nov 12, 2025
344a8cc
Merge pull request #4308 from VisActor/sync/main-2.0.9
xuefei1313 Nov 18, 2025
d2aad07
docs: generate changelog of release v2.0.9
xuefei1313 Nov 18, 2025
2c4d6d1
Update release.md
xuefei1313 Nov 18, 2025
9f9ae2f
Merge pull request #4309 from VisActor/docs/generate-changelog-v2.0.9
xuefei1313 Nov 18, 2025
bd719ca
docs: add candlestick guide
xuefei1313 Nov 18, 2025
4676bd4
Merge pull request #4310 from VisActor/doc/add-candlestick-guide
xuefei1313 Nov 18, 2025
a68e294
chore: update docs
xuefei1313 Nov 19, 2025
26ba81f
Merge pull request #4311 from VisActor/docs/register3d-in-guide
xuefei1313 Nov 19, 2025
2e0aa32
chore: update docs
xuefei1313 Nov 19, 2025
f4735d9
chore: update docs
xuefei1313 Nov 19, 2025
0dfbe80
Merge pull request #4312 from VisActor/docs/register3d-in-guide
xuefei1313 Nov 19, 2025
4002b5d
fix: fix bug of vchar theme demo
xuefei1313 Nov 20, 2025
66c7766
Merge pull request #4313 from VisActor/fix/fix-theme-demo-fetch
xuefei1313 Nov 20, 2025
1408d34
feat: upgrade vrender to fix rose
xuefei1313 Nov 21, 2025
8910092
docs: fix common chart option labelLayout
xuefei1313 Nov 21, 2025
0901cca
docs: fix common chart option labelLayout
xuefei1313 Nov 21, 2025
105f803
Merge pull request #4315 from VisActor/feat/upgrade-vrender
xile611 Nov 24, 2025
d46687e
fix: extensionMark should update when data update
xile611 Nov 24, 2025
420b8d8
fix: extensionMark can remove animation
xile611 Nov 24, 2025
e2a7440
docs: update changlog of rush
xile611 Nov 24, 2025
95088d8
fix: fix update of custom mark
xile611 Nov 24, 2025
7472b71
Merge pull request #4318 from VisActor/fix/extension-mark-update
xuefei1313 Nov 24, 2025
5928eef
docs: add theme guid
xuanhun Nov 25, 2025
eaf0365
Merge pull request #4316 from VisActor/fix/common-chart-option-labelL…
xuanhun Nov 25, 2025
5c95440
feat: add `boxWidth`, `boxMinWidth`, `boxMaxWidth`, `boxGapInGroup` i…
xile611 Nov 25, 2025
ea3204d
feat: boxPlot add shaftShape `filled-line`, close #4302
xile611 Nov 25, 2025
05f7b88
feat: add `outlier` to boxplot, close #4301
xile611 Nov 25, 2025
f81cc05
docs: update changlog of rush
xile611 Nov 25, 2025
1fc85a7
fix: fix style level of boxPlot
xile611 Nov 25, 2025
9f33f54
fix: fix issue of font family
xuefei1313 Nov 25, 2025
e9505e0
docs: update changlog of rush
xuefei1313 Nov 25, 2025
cdd6e45
Merge pull request #4324 from VisActor/fix/fix-node-canvas-font-family
xile611 Nov 25, 2025
d6ae013
Merge pull request #4323 from VisActor/feat/boxplot-enhancement
xuefei1313 Nov 26, 2025
72e13b8
Merge pull request #4300 from VisActor/docs/add-regression-demo-in-ma…
xuanhun Nov 27, 2025
e10ea88
feat: upgrade vrender to 1.0.30
xuefei1313 Nov 27, 2025
a563131
docs: update changlog of rush
xuefei1313 Nov 27, 2025
d591364
Merge pull request #4325 from VisActor/feat/upgrade-vrender-to-fix-an…
xile611 Nov 27, 2025
be13d7f
docs: add map rewind guide
xuefei1313 Nov 27, 2025
b9513e4
Merge pull request #4326 from VisActor/doc/map-rewind-in-guide
xuefei1313 Nov 27, 2025
6efcd0c
Merge pull request #4322 from VisActor/doc/theme-usage
xuefei1313 Nov 28, 2025
37c75ff
Merge pull request #4291 from VisActor/fix/hide-tooltip-when-setdimen…
xuefei1313 Nov 28, 2025
4c8c4ba
docs: fix issue of docs
xuefei1313 Nov 28, 2025
53f000e
fix: fix bug of version lock
xuefei1313 Nov 28, 2025
00689f2
Merge pull request #4328 from VisActor/fix/fix-version-lock
xile611 Nov 28, 2025
d747a24
Merge pull request #4329 from VisActor/doc/fix-issue-of-docs
xile611 Nov 28, 2025
6ab6281
build: release version 2.0.10
xuefei1313 Nov 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 67 additions & 67 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion common/config/rush/version-policies.json
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
[{"definitionName":"lockStepVersion","policyName":"vchartMain","version":"2.0.7","mainProject":"@visactor/vchart","nextBump":"patch"}]
[
{
"definitionName": "lockStepVersion",
"policyName": "vchartMain",
"version": "2.0.9",
"mainProject": "@visactor/vchart",
"nextBump": "patch"
}
]
64 changes: 63 additions & 1 deletion docs/assets/api/en/API/vchart.md
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,9 @@ getCurrentThemeName: () => string;

### setCurrentTheme

**asynchronous method**, set the current Theme.
**Asynchronous method**, set the current Theme.

**Note: If the `theme` property is configured in the chart spec, the `spec.theme` has higher priority.**

```ts
/**
Expand All @@ -774,6 +776,66 @@ getCurrentThemeName: () => string;
setCurrentTheme: (name: string) => Promise<IVChart>;
```

Usage example:

```javascript livedemo
// Define custom theme
const customTheme = {
colorScheme: {
default: [
'#FF6B6B',
'#4ECDC4',
'#45B7D1',
'#FFA07A',
'#98D8C8',
'#F7DC6F',
'#BB8FCE',
'#85C1E2'
]
},
series: {
bar: {
barMaxWidth: 20,
label: {
visible: true,
position: 'top'
}
}
}
};

// Register theme
VChart.ThemeManager.registerTheme('myCustomTheme', customTheme);

const spec = {
type: 'bar',
data: [
{
id: 'barData',
values: [
{ type: 'A', value: 120 },
{ type: 'B', value: 200 },
{ type: 'C', value: 150 },
{ type: 'D', value: 80 }
]
}
],
xField: 'type',
yField: 'value'
};

const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();

// Set theme through instance method
vchart.setCurrentTheme('myCustomTheme');
```

**Note**:
- Before using the `setCurrentTheme` method, you need to register the theme first through `VChart.ThemeManager.registerTheme()`
- This method is asynchronous and returns a Promise, you can use `await` or `.then()` to handle it
- If the `theme` property is configured in the chart spec, the theme in the spec has higher priority

### setTooltipHandler

When the configuration item cannot meet the display needs of the tooltip, we also provide the ability to customize the tooltip. You can configure `TooltipHandler` To override the default tooltip presentation logic.
Expand Down
Loading
Loading