8000 docs: update demo of synced chart, close #3001 by xile611 · Pull Request #3006 · VisActor/VChart · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

docs: update demo of synced chart, close #3001 #3006

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions docs/assets/examples-react/zh/events/sync-charts.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const Card = () => {

const dimensionValue = params.dimensionInfo && params.dimensionInfo[0] && params.dimensionInfo[0].value;

if (dimensionValue != null) {
if (dimensionValue != null && params.action !== 'leave') {
barChartRef.current.setDimensionIndex(dimensionValue, { tooltip: false });
} else {
barChartRef.current.setDimensionIndex(null, { tooltip: false });
Expand All @@ -97,7 +97,7 @@ const Card = () => {
}
const dimensionValue = params.dimensionInfo && params.dimensionInfo[0] && params.dimensionInfo[0].value;

if (dimensionValue != null) {
if (dimensionValue != null && params.action !== 'leave') {
lineChartRef.current.setDimensionIndex(dimensionValue, { tooltip: false });
} else {
lineChartRef.current.setDimensionIndex(null, { tooltip: false });
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
category: examples
group: funnel chart
group: react attributes
title: 使用react渲染漏斗图标签
keywords: funnelChart,composition,trend,triangle
order: 5-0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
category: examples
group: area chart
group: react attributes
title: 自定义图例icon
keywords: funnelChart,composition,trend,triangle
order: 5-0
Expand Down
Loading
0