VisActor / VisActor/VTable

[QUESTION]合并单元格后,如何在合并的单元格显示图表

Open
#4,292 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

What problem does this feature solve?
Image 上面做的示例,目的是合并第一行后,再显示图表。 现在的问题是合并后无法显示图表,有什么办法可以做到,如果暂不支持的话,能否后面扩展此功能。谢谢。
What does the proposed API look like?

const tableOptions = ref({ columns: columns.value, defaultRowHeight: 50, defaultHeaderRowHeight: 50, autoWrapText: true, customComputeRowHeight: (computeArgs: { row: number }) => { if (computeArgs.row === 1) { return 500; } return "undefined"; }, customMergeCell: (col, row, table) => { if (col >= 0 && col <= 3 && row == 1) { return { text: table.getCellValue(row, 1), range: { start: { col: 0, row: 1 }, end: { col: 3, row: 1 } } }; } } });
我是通过customMergeCell来合并的,现在合并后只有text,有没有办法显示图表

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the customMergeCell and customComputeRowHeight callbacks shown in the issue, then trace how merged-cell text and charts are rendered. Determine whether the current API supports rendering a chart in a merged range; done would be a documented supported approach or a clearly scoped extension proposal, with an example showing the chart after cells are merged.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.